This small tool is useful for hiding ugly cmd windows.
It might not be quite as effective as cmdow.exe but cmdow.exe is now triggered by antivirus programs as a virus. cmdow.exe is not a virus... but since the AV makers decided to destroy cmdow.exe I came up with this alternative.
It works a little diffrently than cmdow. Here is how you use it:
Most people will want to place the cmdhide.exe file in the system32 directory so they don't have to specify the path to cmdhide.exe in their batch files.
There are 2 ways to use it.
1. Hide one Batch File
Let's say you want to hide only one batch file. The batch file you want to hide is the batch you are going to start. In this case you would want to call cmdhide.exe with the title of the batch window. So somewhere in your batch you need to make a Title for the batch window like this:
Code: Select all
Title MyBatchWindow
So now your Window Title is "MyBatchWindow"
Now in your batch you will want to call cmdhide.exe with the window title like this:
Code: Select all
Title MyBatchWindow
cmdhide MyBatchWindow
Now when the batch starts you will see the cmd window for a second then it will dissapear.

2. Hide batches called from other scripts
This is my favorite and will probably be the most used because it never flashes the batch window at all. It is hidden from the get go. Also it is very simple to do.
From within your main script if you are gonna call any batch windows you want to hide all you have to do is call cmdhide.exe with the path to the batch you want to hide.
Example:
Code: Select all
cmdhide "X:\path\to\mybatch.bat"