Solved

run an application from a batch file?

Posted on 2008-10-06
4
534 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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…
This video discusses moving either the default database or any database to a new volume.

747 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

11 Experts available now in Live!

Get 1:1 Help Now