Computer Hope

Microsoft => Microsoft DOS => Topic started by: OrlandoE. on March 02, 2013, 03:34:24 PM

Title: New to PC's and need to know how to undo a command in DOS
Post by: OrlandoE. 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...
Title: Re: New to PC's and need to know how to undo a command in DOS
Post by: Lemonilla 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).
Title: Re: New to PC's and need to know how to undo a command in DOS
Post by: Ocalabob 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!
Title: Re: New to PC's and need to know how to undo a command in DOS
Post by: Salmon Trout 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?