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

Number : 3502 Date : 2003-01-11 Author : Kan Yabumoto Subject : Re: Deleting Files Only Size(KB) : 1
To delete files whose name fits certain patterns (multiple patterns), you can list alternative patterns by the /IN switch. If you have only one pattern, you may make it a part of the source specifier. File removal from the source directory is carried out by the /RS (remove source) switch. To preserve empty directories (prevent the directory deletion), use /ED (empty directory). To sum it up, xxcopy c:\*.tmp /rs/s/ed But, normally you may want to suppress warnings by /pd0 // suppresses directory-prompts /rsy // instead of /rs will suppress // the individual confirmation prompts The above example was to delete "*.tmp" files. To delete the three kinds of files, xxcopy c:\*.tmp /rs/s/ed /in*.old /in*.bak Or, if you like a better symmetry, xxcopy c:\ /rs/s/ed /in*.tmp /in*.old /in*.bak The above two are equivalent. Kan Yabumoto ========================================================== At 2003-01-10 14:40, you wrote: >I need to delete files only (*.tmp or *.old or *.bak) on a partition >without deleting folders/sub-folders/empty folders, etc. Would >someone please point me in the right direction? I'm new to Xxcopy. >Thanks in advance.
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.