Re: win explorer delete empty folder?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Pegasus. you forgot the link!

--

Cheers, Tim Med***, Peckham, London.


"Pegasus [MVP]" <news@xxxxxxxxxxxxx> wrote in message
news:eIHDnxTwJHA.5900@xxxxxxxxxxxxxxxxxxxxxxx

"sali" <sali@xxxxxxxxxxx> wrote in message
news:O5mFTmTwJHA.4452@xxxxxxxxxxxxxxxxxxxxxxx
exactly!
if folder is *realy* empty, i don't want complaints about content, but!
if folder contains hidden or system or whatever important files not
visible to me, i expect windows to be aware of them and i *want* to be
warned

well, just try that old cmd "rd" [it is from old dos days from year
1985], it works smarter than new win/xp!

You will find that most DOS commands are available under the WinXP Command
Console and that most of them are considerably enhanced.

"Smarter" is, of course, in the eyes of the beholder. The "rd" command
warns you when the folder to be deleted is not empty. It even has the "/s"
and "/q" switches (which were not available under DOS!). Explorer, on the
other hand, will move the folder to the Recycle Bin, which the "rd"
command cannot do. Both methods have their pros and cons.

About your original question: If you're keen on implementing the
functionality of the "rd" command then you can do it like so:

1. Check out the following link to see how to add an extra item to a
right-click menu.
2. Write a VB Script or a batch file to invoke the equivalent of the "rd"
command.
3. Link this script with your suitably named right-click menu item, e.g.
"Delete Folder".

From now on, when you right-click a folder and click "Delete Folder" then
one of two things will happen:
a) The folder gets deleted (if it is empty)
b) You get a dialog box telling you that folder is not empty, and to click
OK if you wish to delete it.



.


Quantcast