"giddyup" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Will something like this work to copy files across the network? I have
> one that is accesable through the ip address only. When I run this, it
> seems to go through instantly but does not show the results desire. What
> am I doing wrong?
> Thanks
>
>
> xcopy C:\1adata\Adobe\Price Lists\*.* \\USER25\Desktop\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\USER23\Desktop\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\USER22\Desktop\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\USER21\Desktop\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\USER_TWO\Desktop\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\User_three\desk\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\192.168.1.16\d\Price Lists\*.*
> xcopy C:\1adata\Adobe\Price Lists\*.* \\NORTH\alldesk\Price Lists\*.*
Here are a few recommendation:
- Click Start / Run / cmd{OK}, then invoke your batch file from
the Command Prompt you have just started. You will now see all
messages, including any error messages.
- Don't use asterisks for your target. You don't need them.
- Use the /Y switch to prevent the batch file from pausing.
- Use the /D switch to prevent the batch file from redoing stuff
already done.
- Use the /C switch to get the batch file to continue on finding
locked files.
- Use double quotes when dealing with embedded spaces.
You can use them everywhere if you wish!
xcopy /Y /D /C "C:\1adata\Adobe\Price Lists" "\\User_three\desk\Price
Lists\"
On a minor point: If you give your PCs the names of users
(e.g. "User three") then you will have a problem each time
somebody leaves the company. Either you upset his successor
by keeping the name or you change the name and lose its history
after a while.
|