Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Other Microsoft Products _ Remove Directory Via Command Prompt (aka "dos")

Posted by: bakersburg9 Sep 23 2019, 12:29 PM

This should be so simple, I'm hoping someone knows based on personal experience - I've tried many, MANY times on my own, and it doesn't work - I'm familiar with basic command prompt syntax, formerly referred to as "DOS commands" - I know how to copy, rename, delete, go up one level, go back one level

I want to remove a directory - I thought the syntax was very simple... at the command prompt, type:

CODE
Rmdir <directoryName>
... that's it ! not working for me - I've also tried "Rm," I've tried DEL

... What's going on ???

.... if you see from the screen shot, I'm trying to delete/remove the first directory - what SHOULD be easier with Win10 is that now you don't have to jump through hoops to copy, you can just CTRL+C to copy to buffer, then paste

 

Posted by: DanielPineault Sep 23 2019, 12:36 PM

Have you tried surrounding the directory name with quotes?
Have you tried using the DOS short name version of the directory name?

Posted by: bakersburg9 Sep 23 2019, 12:50 PM

QUOTE
Have you tried surrounding the directory name with quotes?
yes - no luck - see below

QUOTE
Have you tried using the DOS short name version of the directory name?
- didn't know that was possible, so I learned something new today!!! That's the good news - but got error - access denied - for both methods, the quotes and the shortname



Steve

 

Posted by: DanielPineault Sep 23 2019, 12:57 PM

Well Access denied implies a permission issue.

Posted by: bakersburg9 Sep 23 2019, 01:05 PM

QUOTE
...'access denied' implies a permission issue.
that's what I figured - how my machine could PLACE something somewhere, but I can't REMOVE it... thanks for your help !

Posted by: DanielPineault Sep 23 2019, 01:16 PM

What about when you start the command prompt you right-click and select "Run As Administrator"?

Posted by: ADezii Sep 23 2019, 02:17 PM

If there are any Files in the Directory or a lower level Tree, you won't be able to DELETE it unless you specify the /S switch. Is this a possibility? Try:

CODE
rmdir 2017%20&%202018%20Alletc. /S

Posted by: bakersburg9 Sep 23 2019, 03:29 PM

Daniel / Adez - it takes a village - ADez - that didn't work, but you lead me to success! I tried your suggestion, and like I stated, it didn't work, but I tried it with the short name, and it worked like a CHARM!!! so not only did I figure this out, but I learned about the 'short' names! I'd never heard of that !

Thanks, ALL !! cool.gif uarulez2.gif

Steve