Solved

run an application from a batch file?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
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 will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

808 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