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

Number : 5289 Date : 2003-08-12 Author : dayvah49 Subject : Re: Copy failed using /RCY/R to overwrite Read-Only file in destination Size(KB) : 2
J. Merrill wrote: > It seems that your batch file is designed to let you build a group of target directories (on a hard disk or network drive) each of which will have at most one CD's worth of data. > > I much prefer "burning a CD" to using "packet-writing software" and it seems you may feel the same way. > > Could you post (or send to me privately) your batch file? That would be much appreciated. I agree about the advantage of burning CD-Rs vs "packet-writing software" which seems to always have problems or waists ones time even with the fastest CD-RW drive. To give me the least number of problems burning to CD-Rs I use batch files that include WinZip's command-line add-on tool called wzzip and XXCOPY to date name zip files and append them with consecutive numbers. If you don't have or want wzzip you can with minimal modifications take out that part and just have date/time folders like this as your last line: xxcopy d:\temp\ f:\burn_cd\/$yy-mm-dd-hh.nn.ss$\/rcy/ed/pd0/y If you use NT, 2000, or XP then it should be easy to create numbered directories. Check the archives for posts by "garrydeane" on cmd.exe commands that will do this. There is also a small command-line tool I use called WMFREN.EXE that will add today's date to a file name if you use Win98/SE that would cut down the number of lines in a batch to get the job done. As you can see I'm truly a novice with batch files! @echo off :loop :: copies a quota of files to zero byte file ref xxcopy c:\ d:\ref_c\/ks/h/r/bx/sz:-650M/qbl:650M/s/y if errorlevel 100 goto end :: copies files that are NOT 0 bytes to temp xxcopy d:\ref_c\ d:\temp\/h/r/s/y/sz:1- :: clears RO bit files that are NOT 0 bytes xxcopy d:\ref_c\/arr/sz:1-/s :: updates ref with 0 byte files for next loop cycle xxcopy d:\temp\ d:\ref_c\/h/r/s/tr0/y :: wzzip moves files and folders into zip file :: note! wzzip syntax has src to right & dst to left! wzzip -m -u -ex -r -P -whs -Jhrs d:\temp\C.zip d:\temp\ :: moves zip to today's date directory xxcopy d:\temp\C.zip d:\temp1\/$yyyy-mm-dd$\/rcy/ed/pd0/y :: adds date to file name with directory flattening switch xxcopy d:\temp1\*\* d:\temp2\/rcy/ed1/pd0/sl/y :: appends file name with consecutive numbers xxcopy d:\temp2\ f:\burn_cd\/rcy/ed/pd0/sgf/y goto loop :end The zero byte directory keeps track of what you copy and serves as a simple record of what's been copied now and in the past. Obviously zero byte files in source will NOT be copied to CDs! I hope this helped. dayvah49
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.