Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
jassenna

cmd.exe and spaces in filenames

7 posts in this topic

This is a newbie question, for which I could not find an

answer in the Win7 help:

How to access directories/files with spaces in their names

from Windows 7 cmd.exe command line? I tried with the space

and with some html space markers, as %20 and . None

worked.

FAT had an 8.3 filename for use in such cases, but

NTFS does not.

O/S: Windows 7 Home, x86 version.

0

Share this post


Link to post
Share on other sites

You enclose the path in quotation marks.

0

Share this post


Link to post
Share on other sites

like cd "C:\Program Files"

0

Share this post


Link to post
Share on other sites

Unless you have disabled/removed it, Win 7, including Win 7 x64, has the ability to utilize the 8.3 version of the file name or path as well. You just have to figure out what it is.

Cheers and Regards

0

Share this post


Link to post
Share on other sites

You just have to figure out what it is.

... and all these years I thought that DIR /X was made for that ... :whistle:

jaclaz

0

Share this post


Link to post
Share on other sites

... and all these years I thought that DIR /X was made for that ... :whistle:

Well, sure, if you want to "cheat" and do it the easy way. LOL Thanks for the reminder. :)

Cheers and Regards

0

Share this post


Link to post
Share on other sites

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.