Jan 13
Close the batch file after executing a program
Scribbled on Sunday, January 13th, 2008Lets say you want to start a program in windows using batch file but you don’t want to let your user see the batch file running in background alongwith the program it executed.So here is the nifty solution to this problem:
Problem: Run MSPaint using batch file and close the batch file as soon as MSPaint runs
Solution:
@echo off start "" mspaint
Remember the 2 double quotes(”") are necessary and “echo off” just doesn’t let the text displayed on screen

No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.





3 Responses to “Close the batch file after executing a program”
Man, i have been looking for this for really long.
By Ring Wraith on Sun 13th Jan, 2008
yeah I needed the same for running XUL application using XULRunner.
By visio159 on Sun 13th Jan, 2008