How to delete all files in a directory with RoboCopy
Create an empty directory such as C:\empty
In this scenario, the folder we would like to empty out is C:\test
After creating the empty directory, you are ready to erase all the contents of your desired directory like so:
robocopy c:\empty c:\test /purge
or
robocopy c:\empty c:\test /MIR
https://tylermade.net/2017/10/06/how-to-delete-all-files-in-a-directory-with-robocopy/
No comments:
Post a Comment