![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Batch file to remove directories older than xthis thread has 3 replies and has been viewed 1173 times
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
Does anyone have a good script out there to remove directories older than x.
I am trying to use unixutils find command but I cannot get it to work Code:
find "\var\log\syslog\archive" -type d -mtime +2 -exec rm -rf {} \;
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help: input data to a string/remove the string leaving only the data using batch file | Slow | DOS Command Shell | 1 | 23rd September 2011 14:55 |
| Batch file to remove a user from all groups | mhashemi | DOS Command Shell | 3 | 19th May 2010 05:31 |
| Batch to log Username, Time and Ip-address at login [was: Batch file help] | tssizemore82 | General Scripting | 2 | 11th August 2009 01:44 |
| batch animation (was:Batch file problem thing) | iamgod | General Scripting | 3 | 1st June 2009 18:37 |
| Creating batch file to remove lines from PRN file | Credo | General Scripting | 1 | 14th April 2009 07:44 |