Sunday, March 18, 2012

CMD TRICKS

How to use cmd to empty recycle bin??

Here is a command with which you can empty the recycle bin


The command line to empty Recycle Bin looks something like this :

ATTRIB %systemdrive%\RECYCLER\* -R -S -H /S /D
RD %systemdrive%\RECYCLER /S /Q

Put the above in a batch file, and that's it..

Sometimes RD won't do it's job, so to be safer side follow these :

ATTRIB %systemdrive%\RECYCLER\* -R -S -H /S /D
DEL %systemdrive%\RECYCLER\* /F /S /Q
RD %systemdrive%\RECYCLER /S /Q


Or you can use this

del C:\RECYCLED\?*.*

DEL is an internal command of CMD.exe to delete an object, so that it might be neccessary to load it first [(i.e. the command line might appear something like this: CMD.exe /C del C:\RECYCLED\?*.*)]



WANT TO BE A FOLLOWER OF THIS BLOG CLICK HERE

WANT TO KNOW MORE UPDATES VIA FACEBOOK THEN SUBSCRIBE HERE

No comments:

Post a Comment