Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
Guides - Privacy & Security Tips
Help to creating batch file that will delete all user profile temp files
Message
<blockquote data-quote="Plexx" data-source="post: 83839"><p>Try this:</p><p></p><p>del "C:\RECYCLER\*.*" - this will delete everything in the folder </p><p></p><p>C being the root folder and remove the " ".</p><p></p><p></p><p></p><p>Another option would be:</p><p></p><p>set folder="C:\RECYCLER"</p><p>cd /d %folder%</p><p>for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)</p><p></p><p>The 2nd script wont delete the root folder</p><p></p><p>The 1st one, probably wont due to the wildcards but feel free to test it on a vm or host machine (instead of recycle bin, create a folder in the actual drive for testing).</p><p></p><p>Oldtimer is also handy but does require some tweaks on scrits (last time I used it)</p></blockquote><p></p>
[QUOTE="Plexx, post: 83839"] Try this: del "C:\RECYCLER\*.*" - this will delete everything in the folder C being the root folder and remove the " ". Another option would be: set folder="C:\RECYCLER" cd /d %folder% for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q) The 2nd script wont delete the root folder The 1st one, probably wont due to the wildcards but feel free to test it on a vm or host machine (instead of recycle bin, create a folder in the actual drive for testing). Oldtimer is also handy but does require some tweaks on scrits (last time I used it) [/QUOTE]
Insert quotes…
Verification
Post reply
Top