|
Answer» Hi, I need a batch file to change to a directory and execute a specific file from that directory.
The directory NAME contains spaces eg. all users.
I tried using cd "all users" or cd all users but it fails.
Any idea how to make it work.
This should be working on windows 2000.
Regards Arun. Try using the complete path to the folder.Also use the DOS file name. For example, in windows you would SEE something LIKE c:\window\all users. In DOS it would be c:\windows\alluse~1.Using the LONG file name in quotes is the correct procedure. I'm not sure why that doesn't work, because I have a BUNCH of batch files where it works fine. Of course, if you're actually executing the command:
cd "all users"
... you do realize you have to be logged into the Documents and Settings folder, right? How about trying:
cd "\Documents and Settings\All Users\"
... and see how it works. That works on my 2K system.
|