![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 4537 Date : 2003-05-05 Author : Kan Yabumoto Subject : Re: Deleting folders based on folder date Size(KB) : 1
Dave To preserve empty directories in a delete operations, just add /ED (for empty directory). /ED // preserves *ALL* empty directories /ED // preserves levels of subdirectories /ED0 // delete all empty directories (default) Note the timestamp-comparison functions are pretty much for files. XXCOPY does not pay attention to directory timestamps except for /LTREE where the /DA, /DB, /Do switches apply to the directory timestamp --- these are pure exception because /LTREE does not handle both directories and files. Kan Yabumoto ------------------------------------------------------------ P.S. Earlier today, you asked me what is the syntax of search query in this board. Like in most search engines, you don't need to go fancy. Just list keywords that you think are related to the subject. It may take several trials and errors. For example, enter "deletes ALL empty folders" (these are exact words fetched from your message), and you will find two messages #3534 and #3535 both of which talk about the /ED switch. ------------------------------------------------------------ At 2003-05-05 17:10, daverunda wrote: >I have a batch file that uses XXCOPY to create a folder named %DATE% >on my D: drive and copy the contents of my C:\DATA folder into the D:\ >%DATE% folder. This system works great except that after a while I >need to purge some of these old backup folders. > > I tried Kan's suggestion and it works great with one exception: > it deletes ALL empty folders, not just he ones that qualify > (indirectly) via the DB#10. An empty folder that was created on > the backup media 5 days ago will be deleted even though I'm > using the DB#10 parameter.
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.