Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

run an application from a batch file?

run an exe from a batch file?
0
leshockey
Asked:
leshockey
  • 2
  • 2
1 Solution
 
chops_ukCommented:
you probably need to use start "program name etc" from the batch file. it'll launch in a new process then.
0
 
chops_ukCommented:
here's a good link to usage:
http://www.ss64.com/nt/start.html

hope this helps!
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now