Sign in to follow this  

Using the Command Line and Paths with Spaces

This topic is 3201 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In the command line, sometimes I need to execute a command whose path includes spaces, i.e. C:\Program Files\Stuff\doStuff.exe I am aware that you surround a path including spaces with double quotes, but the problem arises when I need to use a command that has parameters: "C:\Program Files\Stuff\doStuff.exe" "C:\Users\Me\Documents\stuff.txt" When I tried doing the above, I got an error message: "The system cannot find the path specified." Anyone know how to fix this?

Share this post


Link to post
Share on other sites
Well i do know years ago before win 3.1 and even into 3.1 you could do something like say Program~1 in place and that fixed it. I don't know if you can still do this or not. You might find it under google for old dos stuff and hey it may still work but again idk if that will help any at all

Share this post


Link to post
Share on other sites
Perhaps you have just mistyped something. And another thing, don't put your programs in Program Files or anything containing spaces (doesn't Program Files have more limited permissions?) :)

If you have many programs in a Stuff folder you can create a desktop shortcut to command exe and set it to begin in that folder in the shortcut properties.

Share this post


Link to post
Share on other sites

This topic is 3201 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this