Skip to content

Instantly share code, notes, and snippets.

@ergunozyurt
Created January 26, 2013 15:36
Show Gist options
  • Save ergunozyurt/4642938 to your computer and use it in GitHub Desktop.
Save ergunozyurt/4642938 to your computer and use it in GitHub Desktop.
simple bat content for scheduled jobs to delete files older than given date (tested only windows server 2008 )
forfiles /P C:\fullpath\ /M "*.*" /D -30 /C "cmd /c del /s /q @file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment