![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread
Number : 10714 Date : 2005-03-06 Author : John Zeman Subject : Re: can xxcopy move by file number Size(KB) : 1
--- In xxcopy@yahoogroups.com, zbigniew szalbot wrote: > Hello, > > I am sorry for top posting but cannot get yahoo to display it in plain text. I do not know why but no files are copied. It just does nothing. Can you check it works your end (of course I adjusted the directories). Thank you! dayvah49's script should do what you want. However when you adjusted the directories, if the directories you used have spaces in the names, then you must enclose the source and/or destination with "". That is, like this: xxcopy "c:\my src\" "d:\my dst\" Also, because dayvah49 is using the /WS60 option for xxcopy, which tells xxcopy to delay processing for 60 seconds, the script will appear to do nothing for one full minute. You will see the xxcopy header but that is all until 1 minute has passed. After 1 minute xxcopy should move up to 100 files then go back and wait again for one more minute. Eventually when there are no files left to copy xxcopy will return an errorlevel of 100 which ends the script. John > > This simple script should get the job done. You'll need to > edit the command for your paths. Garry or John may > have a better or more sophisticated solution. > > @echo off > :loop > xxcopy c:\src\ d:\dst\ /s/rcy/ed/pd0/qf100/ws60 > if errorlevel 100 goto end > goto loop > :end > > /RCY suppresses prompts for a file copy & remove from source. > /ED preserves empty directories in source. > /ED preserves levels of empty directories (ex: /ED1 for 1st > level) . > /PD0 suppresses prompts for destructive processing of > directories. > /WS60 waits 60 seconds at the start of the command. > /WE60 waits 60 seconds at the end of the command. > > You could also add /H /R if you have hidden and read-only files > that you want processed. > > /H copies hidden and/or system files. > /R allows overwrite/delete of read-only files > > Hope this helps. > > dayvah49
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.