Phone: 07941 120174

Delivering solutions to small and medium sized companies

PMS

Calling all Accountants

Are you a practive accountant?  Why not take a look at our "Practice Management System".  Designed by accountants, for accountants, to manage accounts, schedules, services, deliverables, time, effort and invoices.

Services

  • Websites
  • IT & computer consultancy
  • Development
  • Support & Maintenance
  • Networking
  • IP Phone Systems

Batch Files - Purging Files in a Folder

This is how to do a simple folder purge operation

Purging files in a folder

forfiles -p "C:\what\ever" -s -m *.* /D -<number of days> /C "cmd /c del @path"

For example

Display files to be deleted

forfiles -p "C:\what\ever" -s -m *.zip /D -20 /C "cmd /c echo @FILE"

Do the actual delete

forfiles -p "C:\what\ever" -s -m *.zip /D -20 /C "cmd /c del @FILE"

AVG Reseller 120x74 voipon reseller
  View Tim Davis's profile on LinkedIn