Re: Dos path name with space character
- From: "Shenan Stanley" <newshelper@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 00:06:59 -0500
Ong wrote:
Recently I wrote a batch file to launch a program located in a
folder containing space character in its name. Neither of the
following scripts I used worked:
start "c:\Test 1\" abc.exe
start "c:\Test~1\" abc.exe
Using 'dir /x' on DOS prompt at C:\, the correct DOS path name
shown for 'C:\Test 1' is 'C:\Test1~1'. I replaced the path name in
my script with this & the script worked accordingly.
The answer is much simpler...
start "c:\Test 1\abc.exe"
In other words - the quotes go around the entire path - including the
filename.
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
.
- Follow-Ups:
- Re: Dos path name with space character
- From: Ong
- Re: Dos path name with space character
- References:
- Dos path name with space character
- From: Ong
- Dos path name with space character
- Prev by Date: Re: Installing SP3 on Xp OEM version
- Next by Date: Re: Dos path name with space character
- Previous by thread: Dos path name with space character
- Next by thread: Re: Dos path name with space character
- Index(es):
Relevant Pages
|