| 1. |
Solve : Can I use FORFILES to remove folders of files?? |
|
Answer» I have a backup script that places the backup file into a current DATE folder. I want to use a script to say truncate all folders that are earlier than 30 days from today's date Haven't tried this yet but it's supposed to move files to a second folder if they are 365 days old Will try it out. C:\>rmdir /? Removes (deletes) a directory. RMDIR [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q QUIET mode, do not ask if ok to remove a directory tree with /S C:\>Quote from: billrich on August 23, 2009, 08:26:50 AM C:\>rmdir /?it just removes directory, but does not check for X days to delete. extra code is needed. |
|