1.

Solve : recycled not deleted..?

Answer»

this code will delete the recycled files , i just removed about 50 thousand

@ECHO OFF
%1:
CD\
IF EXIST %1:\RECYCLER GOTO REST

:REST
CD RECYCLER
GOTO DASN

:DASN
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1011\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1011
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1012\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1012
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1013\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1013
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1014\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1014
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1015\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1015
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1016\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1016
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1017\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1017
if exist %1:\RECYCLER\S-1-5-21-1513643549-276278167-1866120187-1018\ RMDIR /Q /S S-1-5-21-1513643549-276278167-1866120187-1018
CLS
GOTO END

:END

the syntax would be %0 %1 , program name DRIVE letter.What do you mean by 'recycled files'?
Do you mean the files in the recycle bin??yeah.. sometimes they get deleted but recycle bin usualy just MOVES them to recycler and attribs them..
if windows is on c drive , open cmd type cd\recycler then DIR *.* /A:DHSR /B /P /S is the command to search out all folders with attribute..

I didn't know you could do that. The cd\recycler part.
If you use the DEL command for command prompt, the deleted file won't go into the recycle bin.
I think you can empty the recycle bin like this:
Code: [Select]cd\recycler
del *.* /f /s /qI DONT know if it works though, havent tried.



Discussion

No Comment Found