Help with an if then statement in .bat coding

Hewlett-packard Pavilion dv5t notebook -...
August 13, 2009 at 10:01:43
Specs: Windows Vista, P8400/4GB
I am making a .bat file to start multiple files
from one shortcut. The thing is I need to right
an if then statement in it and I am kind of new
to the coding. The current file says:

@echo off
rem iTunes
cd C:\Program Files (x86)\iTunes
start iTunes.exe
rem WC3Banlist
cd C:\Program Files (x86)\WC3Banlist
start WC3Banlist.exe
rem Warcraft3
cd C:\Program Files (x86)\Warcraft III
start war3.exe
exit

But I need to add and if then or else
statement. It needs to be
if itunes.exe is running then do nothing, else
cd C:\Program Files (x86)\iTunes
start iTunes.exe

Then a similar thing for the other two.


See More: Help with an if then statement in .bat coding

Report •


#1
August 14, 2009 at 17:24:38
Post this in the Programming Forum... link on the right of this page.

http://ewen.uuuq.com/


Report •
Related Solutions


Ask Question