Jan 13

Close the batch file after executing a program

Scribbled on Sunday, January 13th, 2008

Lets 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 :)


Enjoyed this post? Subscribe to Full Feeds or by Email and receive free daily updates on this Blog.

No related posts.

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

  1. 3 Responses to “Close the batch file after executing a program”

  2. 1

    Man, i have been looking for this for really long.

    By Ring Wraith on Sun 13th Jan, 2008

  3. 2

    yeah I needed the same for running XUL application using XULRunner.
    :)

    By visio159 on Sun 13th Jan, 2008

  1. 1 Trackback(s)

  2. May 15, 2008: Close the batch file after executing a program « A Bittersweet Life | blog

Post a Comment

January 2008
M T W T F S S
« Dec   Mar »
 123456
78910111213
14151617181920
21222324252627
28293031