On Tue, 15 Jun 2004 02:17:01 -0700, "johnc"
<(E-Mail Removed)> wrote in
microsoft.public.win2000.cmdprompt.admin:
>I would like to copy only one file with robocopy using the wildcard .* , I have a file that will be updated that starts with file name 4xxx (the xxx are numbers that will be changed daily but 4 is the always the same) for ex: 4xxx.exe I try to copy only this file with the command for example: robocopy c:\4*.* d:\4*.*
>
>this doesnt work as robocopy looks for the directory 4*.*
>This is only a simple example as I need to know how to use the wildcard for a single file with robocoopy
[Please don't create lines longer than ~72 characters]
ROBOCOPY requires source and target _directories_ on the command line,
and separate optional file specifications. See ROBOCOPY.DOC or ROBOCOPY
/?
Thus:
ROBOCOPY c: d: 4???.exe
Note that ROBOCOPY requires that the source and target paths must not be
terminated with a back-slash. I recommend reviewing the location of
4???.exe in the root direectory: not good practice.
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"