Delete Old Files with Windows “Forfiles” Feature

If you want to delete old files from your SAP system then you can easily use “Forfiles” feature of Windows operating system.

For an example , you can delete the files older than 60 days for defined directory like shown below ;

forfiles /P F:\oracle\SID\trace\audit /S /M *.xml /D -60 /C “cmd /C del @path”

Delete Old Files with Windows "Forfiles" Feature

You can create a simple CMD file and schecdule with “Windows Task Manager” option.

Delete Old Files with Windows "Forfiles" Feature

You can find the detail informations from the following web site ;

https://technet.microsoft.com/en-us/library/cc753551.aspx

Delete Old Files with Windows "Forfiles" Feature

Delete Old Files with Windows "Forfiles" Feature

 

Leave a Reply


3 × = three

Blogroll