CrazyEngineers
  • vishalhak
    vishalhak

    MemberDec 10, 2007

    Help with DOS command

    can any of you tell me how to perform any command on a directory or file that contains space in its name. eg: "cd ms office";where "ms office" is the name of the folder,the system returnts an error.:sshhh:
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • mahul

    MemberDec 10, 2007

    Re: help in dos!!!!!!!!!!!!!!

    this is simple....just type the name of the command followed by the name of the file/directory in double quotes, e.g. cd "ms office". i have used this always in windows command prompt and this would work for dos too(though i didn't check this out). so try this and let me know.
    Are you sure? This action cannot be undone.
    Cancel
  • Kaustubh Katdare

    AdministratorDec 10, 2007

    Re: help in dos!!!!!!!!!!!!!!

    I use a simpler method 😁 Let's say you want to switch to directory name "Hello World", type first few characters of the directory name and hit the tab key.

    Note that this is just like what we have in bash. Those familiar with UNIX/SUN environment. 😀

    -The Big K-
    Are you sure? This action cannot be undone.
    Cancel
  • Prasad Ajinkya

    MemberDec 11, 2007

    This does not work in the older versions of DOS.

    Vishal, heres what you do - type in the first six characters of the string as if the space was not there, then type in "~1" after that.

    So if you wanted to say .. change your directory to "My Documents", then you would say c:/>cd mydocu~1 (enter)

    That should work!
    Are you sure? This action cannot be undone.
    Cancel
  • vishalhak

    MemberDec 11, 2007

    thanks all of of you for your valuable sugesstions
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register