Solved

run an application from a batch file?

Posted on 2008-10-06
4
536 Views
Last Modified: 2012-05-05
run an exe from a batch file?
0
Comment
Question by:leshockey
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:chops_uk
ID: 22648090
you probably need to use start "program name etc" from the batch file. it'll launch in a new process then.
0
 
LVL 5

Accepted Solution

by:
chops_uk earned 500 total points
ID: 22648104
here's a good link to usage:
http://www.ss64.com/nt/start.html

hope this helps!
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 22648545
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
 
LVL 43

Expert Comment

by:Steve Knight
ID: 22648550
Sorry had left this open since earlier and only just hit submit!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now