This is a silly question but im having trouble writing batch files on vista. Everytime i cd to program files it tells me:
c:\program
doesn't exist what am i doing wrong?![]()
-
the path C:\Program Files contains a space in it. Therefore, you have to put it in quotation marks, otherwise the interpreter thinks you are trying to browse to C:\Program with Files as a second parameter.
-
Where have you stored your program? How are you accessing your program? What have you written in your program?
-
AKAJohnDoe Mime with Tourette's
Alternately, use the environment variables. %ProgramFiles% should do it for you. Type in set at a DOS command prompt and press enter to see them all.
-
The_Observer 9262 is the best:)
try C:\program~1 or c:\program files
-
I like the enviromental variable %ProgramFiles%. Brings me back cozy feelings of designing a startup menu through Config.sys.
-
Or enclose any path that has spaces with quotations
-
Please help with writing .bat files in vista
Discussion in 'Windows OS and Software' started by Acorn, May 6, 2008.