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

Number : 4378 Date : 2003-04-20 Author : Garry Deane Subject : Re: Blank Directories Size(KB) : 1
--- In xxcopy@yahoogroups.com, "rgen248x" wrote: > A blank directory is a directory with no files. > I copy from the same source dir (can contain several files) > using the same control switches except for a /DA:2000-1 or > a /DB:2001-1. When my source file does not have any files > that meet the date limits a blank (empty) directory is > created. Ahh! finally the penny has dropped (for me). I've been struggling to understand how you can get empty directories when you haven't been using the /S parameter. I'm afraid that you're stuck with that behaviour. If you are using a batch file to run the xxcopy commands, simply add a "RD \yourbackupdir > nul" command. The directory will only be deleted if it doesn't contain any files. Similarly, you can use Kan's example for deleting empty directories. If you are running xxcopy from the command line, run it first with /L appended to the parameters which will list the files to be copied but not actually copy them (and therfore not create the directory). If there are any files listed, remove the /L and re-run it to do the actual copy. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.