How to hide Command window when batch file runs

V

v2win

On WinXPSP3, fully patched.

I would like to execute a small batch file by executing a quicklaunch
toolbar shortcut whose target is a .cmd file on the C:\ drive. Everything
works as intended, but I don't want the command window appearing on the
desktop and remaining open until the launched app. closes. Is there
something that I can add to the script to allow this to execute in the
background, without the command window launching on the desktop?

The content of the file is something like this:

echo off
(net start service 1)&&(net start service 2)&&(net start service 3)
"C:\Program Files\Product Directory\exec\app.exe"
 
T

Terry R.

The date and time was 10/23/2008 6:17 AM, and on a whim, v2win pounded
out on the keyboard:
On WinXPSP3, fully patched.

I would like to execute a small batch file by executing a quicklaunch
toolbar shortcut whose target is a .cmd file on the C:\ drive. Everything
works as intended, but I don't want the command window appearing on the
desktop and remaining open until the launched app. closes. Is there
something that I can add to the script to allow this to execute in the
background, without the command window launching on the desktop?

The content of the file is something like this:

echo off
(net start service 1)&&(net start service 2)&&(net start service 3)
"C:\Program Files\Product Directory\exec\app.exe"

Right click on the shortcut and select Properties. Drop down the "Run"
selector and choose Minimized. That should do what you want, although
you still see it in the Taskbar.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top