batch file in xp

  • Thread starter Thread starter giddyup
  • Start date Start date
G

giddyup

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\*.*
 
"giddyup" <nospam@nospam.com> wrote in message
news:e83IN8wyIHA.2292@TK2MSFTNGP03.phx.gbl...
> 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.
 
Pegasus (MVP) wrote:
> "giddyup" <nospam@nospam.com> wrote in message
> news:e83IN8wyIHA.2292@TK2MSFTNGP03.phx.gbl...
>> 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.
>
>

Thank you very much for the info
 
"giddyup" <nospam@nospam.com> wrote in message
news:484EF41E.6050005@nospam.com...
> Pegasus (MVP) wrote:
>> "giddyup" <nospam@nospam.com> wrote in message
>> news:e83IN8wyIHA.2292@TK2MSFTNGP03.phx.gbl...
>>> 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.

> Thank you very much for the info


You're welcome.
 
Back
Top