[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 3718 Date : 2003-02-17 Author : Garry Deane Subject : Re: XXCOPY DELETE FILE OLDER THAN number of days Size(KB) : 0
--- In xxcopy@yahoogroups.com, "Massimo Petrini" wrote: > Oggetto: XXCOPY DELETE FILE OLDER THAN number of days > > I need to write a bat file to delete every day from my server > some files older than a specified number of days. > > I don't found a switch to cancel only and so I not sure my > wish it is possible to realize. > Anyboy can help me ? > tks Use something like the following to delete files older than 60 days. You may want to add switches for hidden and read-only files. Remove the final /L after testing. xxcopy f:\test\ /s/rsy/pd0/db#60/L Note that this will also remove the source root directory if there are no files left within the root after removal of the old files. If this is not wanted, recreate the directory with an MD command or put a dummy file in the root directory and exclude that from deletion with the /x switch. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.