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

Number : 4972 Date : 2003-07-09 Author : Garry Deane Subject : Re: Problems flattening directories using sl Size(KB) : 2
--- In xxcopy@yahoogroups.com, "bradsaide" wrote: > Hi all. > > I'm having problems flattening directories - I have a stack > of images named the same and separated into date named > directories. I need to merge them all into a single folder, > but in order to do so I have to add the folder name onto > the front of the file. I'm using these switches - can anyone > tell me why it just moves the entire folder tree without > flattening the files? > > xxcopy.exe d:\camera\imagetree\ > d:\camera\flatimages\ /sl /ed /rc /r /yy /os2 /of2 > /onF:\xxcopylogs\logfile.txt > > There's nothing obvious in the log file. It's a bug! It seems that when you use /RC with /SL, it overrides the /SL (and /SG) switches. It works as expected if you don't use /RC. I had a play with changing the order of the switches to see if specifying /SL after the /RC switch made a difference but it didn't. Similarly, specifying /SG gets overridden e.g. in the following, the parameters used are /SG0 and /SX0 despite the command parameters. ============================================================= XXCOPY ver 2.84.6 2003-07-09 09:06:54 Command Line = xxcopy.exe d:\test\dir1\ d:\test\dir2 /ed/rc/sg/sl/r/yy/os2/of2/onlogfile.txt ------------------------------------------------------------- Switch Parameters /AXH /AXS /B0 /C /CA /CB0 /CCY /CK /CR3 /D0 /DL0 /E0 /EC0 /ED /ER0 /F0 /FM0 /FF0 /FL /FT0 /FW /H0 /I /IN* /K0 /L0 /N0 /NP0 /NX /NI0 /NW /NC0 /oND:\temp\logfile.txt /oD1 /oE0 /oF2 /oI0 /oP0 /oS2 /oX0 /P0 /PB0 /PC0 /PD0 /PN /Po0 /PZ0 /Q0 /QF0 /QB0 /QS0 /R /RCY /S /SP0 /SG0 /SX0 SZ:- /T0 /TR00 /TS0 /TD0 /TTA0 /TCA0 /TCC0 /TCW /TM0 /U0 /V0 /W0 /WD /WV /Y /YY /Z0 /ZE0 /ZS0 /ZX0 ------------------------------------------------------------- I guess the only short term fix is to do the file gathering in two steps. 1. Use /SL to gather the files into the destination. 2. Use /RS to remove the files in the source. If you're worried about some files being skipped in the first step, you may need to also use the archive bit to avoid deleting files which didn't get copied. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.