View Full Version : FOLDER - right click commands
Richard
December 6th 03, 12:27 PM
I have a few folders I just dump stuff into for temp use
(not the temp folder(s)) and am wondering if there is an
easy way to clear all of the contents, aside from oepning
the folder > select all > delete. May be lazy, but it's
also more a trick that could be helpful elsewhere. I'd
like it to perform almost like the recycle bin, where i
can right click, and choose to delete contents. Any
ideas? Feel free to send me in the technical
direction... i'm comfy with system and registry tweaks.
Thanks,
Richard
R. C. White
December 6th 03, 12:27 PM
Hi, Richard.
Well, you could just delete the folder itself, then recreate it. This
should be faster than opening the folder and deleting its contents.
Or open a "DOS" window and either delete all the contents with del *.* (or
del foldername\*.*) or remove the directory, all subdirectories and files
with rd foldername /s /q.
RC
--
R. C. White, CPA
San Marcos, TX
Microsoft Windows MVP
"Richard" > wrote in message
...
> I have a few folders I just dump stuff into for temp use
> (not the temp folder(s)) and am wondering if there is an
> easy way to clear all of the contents, aside from oepning
> the folder > select all > delete. May be lazy, but it's
> also more a trick that could be helpful elsewhere. I'd
> like it to perform almost like the recycle bin, where i
> can right click, and choose to delete contents. Any
> ideas? Feel free to send me in the technical
> direction... i'm comfy with system and registry tweaks.
>
> Thanks,
>
> Richard
Vincent Finn
December 6th 03, 12:32 PM
Richard wrote:
> I have a few folders I just dump stuff into for temp use
> (not the temp folder(s)) and am wondering if there is an
> easy way to clear all of the contents, aside from oepning
> the folder > select all > delete. May be lazy, but it's
> also more a trick that could be helpful elsewhere. I'd
> like it to perform almost like the recycle bin, where i
> can right click, and choose to delete contents. Any
> ideas? Feel free to send me in the technical
> direction... i'm comfy with system and registry tweaks.
>
> Thanks,
>
> Richard
You can do what RC suggests but add it to the right click
Save the following to a .reg file
---> Cut here
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\Delete Contents]
@="Delete Contents"
[HKEY_CLASSES_ROOT\Directory\shell\Delete Contents\Command]
@="C:\\DeleteContents.bat \"%1\""
---> stop cut
and make a file called DeleteContents.bat
which you should save to whatever place is specified above
I left it as the C: root
Put these lines in the batch file
---> cut here
rd /Q /s %1
md %1
---> stop cut
Double click on the reg file and you should have what you want
Vin
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.