?
Solved

run an application from a batch file?

Posted on 2008-10-06
4
Medium Priority
?
545 Views
Last Modified: 2012-05-05
run an exe from a batch file?
0
Comment
Question by:leshockey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

777 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