![]()
[<<]Message[>>] [<<]Author[>>] Subject [<<]Thread
Number : 3504 Date : 2003-01-11 Author : Kan Yabumoto Subject : Re: Copy same source to multiple destinations Size(KB) : 2
Tim: Let me repeat my emphasis: One-source ---> One-destination. Even with the help of wildcards in the source, we consider the source directory to be only one. We call it "source base directory" which is the common (without wildcard in it) part of the unifying directory. The source directory will correspond to the destination directory. You simply specify the directory at the destination side that is corresponding to the source base directory. Everything else under the source base directory will be replicated as the same directory structure at the destination end. Example: Source side: c:\abc\xyz\ c:\abc\xyz\sub1\ c:\abc\xyz\sub2\ c:\abc\xyz\sub2\sub21\ Destination side: c:\mydir\any_level\dst\ Now, when you run xxcopy c:\abc\ c:\mydir\any_level\dst\ The result in the destination will be c:\mydir\any_level\dst\xyz\ c:\mydir\any_level\dst\xyz\sub1\ c:\mydir\any_level\dst\xyz\sub2\ c:\mydir\any_level\dst\xyz\sub2\sub21\ Here, anything below the source base directory (c:\abc\) will be replicated in the destination which is exactly how it is spelled in the command line. It is best that you experiment with a few test directories and observe what is the relationship between the source and the destination. Your command line example contained a wildcard (*) which is not allowed in XXCOPY's destination specifier. That's because let me repeat, only one destination can be allowed and one destination should not have a wildcard. Kan Yabumoto ========================================================= At 2003-01-07 07:42, you wrote: >Kan, > >Thanks for the reply, and I apologize for the incomplete information. I >will clarify in order to narrow down my problem. > >I have upgrades that are done quarterly that update a source program >directory that needs to then be replicated to the remaining user directories >on the file server. > >The upgrade updates the current user directory: > >example: h:\joeboo\FSA\ > >FSA Being the application directory that the upgrade process has updated >with new files > >Following the upgrade, the "joeboo\FSA\" directory contents then need to be >replicated to all of the remaining users in their respective "username\FSA\" >folders. > >I am attempting to utilize XXCOPY to replicate the contents of >h:\home\joeboo\FSA\ to the remaining h:\home\"username"\FSA directories. > >I understand the wildcard switches on the source directory, but am failing >to find examples of wildcard destinations. > >example: xxcopy h:\home\joeboo\FSA\* h:\home\*\FSA\ > >Obviously this syntax does not work, but it eludes to what I am attempting >to do: > >copy the entire contents of a specified directory "h:\home\joeboo\FSA\" (to >include sub-directories and contents) to the same directory name located in >different parent directories (h:\home\tomfar\FSA\, h:\home\suedoe\FSA\, >h:\home\lizfry\FSA\, etc. etc.) > >Thanks for your assistance, I have been trying switches for hours and can't >seem to get it right. > >Have a great day!
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.