1.

Solve : Batch file to run multiple programs - error on command line?

Answer»

I'm new to BATCH files and have read the beginner MATERIAL on here.  I can get certain programs to run through my batch file but others I can't because of the spaces in the file path.  I have already done the simple things mentioned on this site like adding the quotation marks but that doesn work.

OS Is Vista64 if that matters.
 
Here are my command lines:
START C:\Users\Cary\Desktop\miniAdmin3\miniAdmin3.exe  (this one works fine)
START C:\Program Files (x86)\CoD RconTool10\CoD RconTool.exe  (this one errors because of the spaces.

So I tried using QUOTATIONS:  START "C:\Program Files (x86)\CoD RconTool10\CoD RconTool.exe" (but this brings up a CMD window instead of the program I want to run)

What am I doing wrong?
Okay I figured out what I'm doing wrong.  here is how the command line should look:

START C:\"Program Files (x86)"\"CoD RconTool10"\"CoD RconTool.exe"  (where we only need "" marks around the file name or directory that has the space in it. Quote from: Medaitor on JULY 03, 2009, 01:33:28 PM

Okay I figured out what I'm doing wrong.  here is how the command line should look:

START C:\"Program Files (x86)"\"CoD RconTool10"\"CoD RconTool.exe"  (where we only need "" marks around the file name or directory that has the space in it.
Quite strange, I haven't seen a path with more than one set of quotes...but start "C:\Directory Here\file name.exe" should work...I had the same problem but when i removed the start command and checked my spelling it did work



Discussion

No Comment Found