Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience.
How to create a bat script to empty users recycle bins
설명
Creating a script to empty user recycle bins and reclaim disk space.
해결 방안
Click on Scripting.
Click Choose Action and then Add New Item.
Change the Script Type to Online Script.
Fill out other necessary information for the script. (Name, Description, Status, etc.)
Choose Machines to Deploy, Run As, Alerts and Scheduling as required for your needs.
Make sure to choose at least one applicable OS.
Under Tasks.
Under On Success, click Add.
Name the Script.
Copy the following script into the batch file box:
@echooffecho This batch file will permanently remove all users recycled files/folders. echo ---------------------------------------------------------------------------- echo You're about to clear the following folder: rd /s /q C:\$Recycle.Bin
For example:
NOTE: If Windows XP, replace C:\$Recycle.Bin with c:\recycler.