leshockey
asked on
run an application from a batch file?
run an exe from a batch file?
you probably need to use start "program name etc" from the batch file. it'll launch in a new process then.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
Sorry had left this open since earlier and only just hit submit!