A Google search for “empty recycle bin from command line” leads to this: http://stackoverflow.com/questions/9238953/how-to-empty-recyclebin-through-command-prompt. The proposed solutions include:
rd /s %systemdrive%\$Recycle.bin.
recycle.exe, a utility available from http://ss64.net/westlake/xp/index.html.
Run these from Perl using backticks or system. Disclaimer: I haven’t tried the approaches suggested. Note the caveats to the first solution.
Hope that helps,
Update: I downloaded and unzipped Frank P. Westlake’s recycle utility. No malware, and it appears to work as advertised. (I’m running Windows 8.1.)
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Command to Empty Recycle Bin with Perl?
by Athanasius
in thread Command To Empty Recycle Bin With Perl?
by sphinxy09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |