Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: New to PC's and need to know how to undo a command in DOS  (Read 3371 times)

0 Members and 1 Guest are viewing this topic.

OrlandoE.

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 7
    New to PC's and need to know how to undo a command in DOS
    « on: March 02, 2013, 03:34:24 PM »
       I am knew to computer's and I am in a class that is trying to teach me all the ins and outs of pc's.... We're having a test next week on MS DOS, I put in the command: MD \DOS LABS... and I keep getting a response saying that there is already a file under that name, so I put in the command: RMDIR \DOS LABS & now it's telling me the command could not complete because the file cannot be found. Can someone please assist me in getting past this?... Thanking you in advance...

    Lemonilla



      Apprentice

    • "Too sweet"
    • Thanked: 70
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Re: New to PC's and need to know how to undo a command in DOS
    « Reply #1 on: March 02, 2013, 06:38:35 PM »
    try putting the name in quotations, typing 'dir' to make sure the folder exists, escaping the \, and using rd in place of rmdir (don't know if this will make a difference, but it could).
    Quote from: patio
    God Bless the DOS Helpers...
    Quote
    If it compiles, send the files.

    Ocalabob



      Rookie

      Thanked: 4
      • Experience: Familiar
      • OS: Windows 7
      Re: New to PC's and need to know how to undo a command in DOS
      « Reply #2 on: March 02, 2013, 07:10:44 PM »
      Greetings OrlandoE,
      Given your example you are making two folders. One name DOS and a second
      one named LABS. Type DIR at a command prompt and insure that those are
      indeed the folder names that were created. Your RD command in the
      example will work provided the folder names are correct.

      The better choice, at this point, would be to locate those folders using
      Windows Explorer, determine the problem, delete the folders and begin anew
      at a C:\ prompt. Remember to use double quotes around folder names that
      have spaces as Lemonilla pointed out. Example: "DOS LABS"

      Best wishes!

      Salmon Trout

      • Guest
      Re: New to PC's and need to know how to undo a command in DOS
      « Reply #3 on: March 03, 2013, 01:03:50 AM »
      If there is a file called DOS LABS then you cannot create a folder of that name in the same location. Also RMDIR will not remove it, but DEL may well do so.

      If you have filenames with spaces, is this really MS-DOS?