smart Z
asked on
batch file question
I created a batch file and it is executing the commands with no problem. but I do not want the black box to appear on the screen. I have added the @echo off in the beginning but the box with black box stays on untill the installation finishes.
I want this suppressed
Thanks Habib
I want this suppressed
Thanks Habib
Put the batch file somewhere else like C: maybe then put a shortcut to it on your desktop.
Right click the shortcut and choose Properties
Go to the Shortcut tab
In the Run drop down choose Minimized
Right click the shortcut and choose Properties
Go to the Shortcut tab
In the Run drop down choose Minimized
ASKER
How do I use the console tool
I extracted it what do I do Now.
I extracted it what do I do Now.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
these are the args apparently for consoletool but I kept getting errors running it about windows handle cant be found
/HIDE hides the console window of course.
/SHOW shows the previously hidden console window.
/NOMENU removes the system menu from the console window.
so the alternative to the shortcut might be to use the START command, It will not hide it but will make it minimized
START /MIN batchscript
this goes to a shortcut obviously. I think that should work.
/HIDE hides the console window of course.
/SHOW shows the previously hidden console window.
/NOMENU removes the system menu from the console window.
so the alternative to the shortcut might be to use the START command, It will not hide it but will make it minimized
START /MIN batchscript
this goes to a shortcut obviously. I think that should work.
There is this trick someone made. its a batch script that creates a vbscript (vbscript mentioned by QCubed first)
Wonder if you could use this http://www.windowsitpro.com/article/tips/jsi-tip-9242-how-can-i-hide-a-batch-window-.aspx
Wonder if you could use this http://www.windowsitpro.com/article/tips/jsi-tip-9242-how-can-i-hide-a-batch-window-.aspx
Grab a copy od CMDOW from:
http://www.commandline.co.uk/cmdow
and try adding the following at the top of the BAT file:
@cmdow @ /HID
~bp
http://www.commandline.co.uk/cmdow
and try adding the following at the top of the BAT file:
@cmdow @ /HID
~bp
I have used this tool in the past with pretty good results. It is called runhid.vbs basically you call this file along with your batch file as an argument and then you can run the batch file contents hidden.
http://www.out-web.net/?p=229
http://www.out-web.net/?p=229
You can convert the batch file to an exe with this tool. One of the options is to have the exe run invisible:
http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html?tag=mncol;1
http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html?tag=mncol;1
ASKER
good answer
by blackbox I assume you mean the dos command window
you could create a shortcut to that batch script and tell it to run minimized
there is this console window tool (called Console Tool) which can be used hidden http://www.virtualizationadmin.com/files/consoletool.zip