We help IT Professionals succeed at work.

how to close command windows after running below batch script

mac_g
mac_g asked
on
dear experts,

when I ran the below scripts, command window keep opining.

-------------
path = C:\Program Files\Adobe\Reader 9.0\Reader

AcroRd32.exe

exit

-------------

please advice how to close the window automatically.

 




Comment
Watch Question

use:

start "" "AcroRd32.exe"

instead of only AcroRd32.exe
mac_gAdmin - Middleware Servers

Author

Commented:
Thanks for your quick update.

it is working as expected.

but the PDF instance window appearing on the desktop.

is there any where by we can close / minimize(to sit on taskbar)  too?
Commented:
use the option /MIN on START command too.

i.e.

START /MIN "Title of window" "C:\Program Files\Adobe\Reader 9.0\Reader
\acrord32.exe"

start /? gives more details.   The title of the window is required if you need quotes around the  path or filename.

BTW what it the purpose of the line path=... etc?

Steve
mac_gAdmin - Middleware Servers

Author

Commented:
Thanks for your support -