run an application from a batch file?

run an exe from a batch file?
leshockeyAsked:
Who is Participating?
 
chops_ukConnect With a Mentor Commented:
here's a good link to usage:
http://www.ss64.com/nt/start.html

hope this helps!
0
 
chops_ukCommented:
you probably need to use start "program name etc" from the batch file. it'll launch in a new process then.
0
 
Steve KnightIT ConsultancyCommented:
Or you can just list the EXE name in the batch and it will run and pause the batch until the EXE terminates  

No doubt the link above tells you but if you do use START then be careful with quotes - if you add quotes around a path because it ahs spaces in then you need to do:

START "" "c:\program files\whatever.exe"

as the first paramter in quotes is taken as the "window title" for the program you create, e.g.

START "My command prompt" "cmd.exe"

Running an exe with START like this starts the program but carries on with the batch file straight way.  If you want it to wait don't use START or add /WAIT to the command line.

hth

Steve
0
 
Steve KnightIT ConsultancyCommented:
Sorry had left this open since earlier and only just hit submit!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.