PC Review


Reply
Thread Tools Rate Thread

batch file in xp

 
 
giddyup
Guest
Posts: n/a
 
      10th Jun 2008
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\*.*
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      10th Jun 2008

"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.


 
Reply With Quote
 
giddyup
Guest
Posts: n/a
 
      10th Jun 2008
Pegasus (MVP) wrote:
> "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.
>
>

Thank you very much for the info
 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      10th Jun 2008

"giddyup" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Pegasus (MVP) wrote:
>> "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.

> Thank you very much for the info


You're welcome.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A script/batch to kill a batch file from scheduled tasks? Bogdan Windows XP Configuration 1 31st Jul 2009 06:05 AM
batch file call from a macro - how ? and required batch format VB-rookie Microsoft Excel Programming 3 5th Sep 2008 10:33 PM
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
Batch file works in command line but not as a batch Danger Windows XP General 7 5th Feb 2008 04:50 PM
Save batch window msgs to a file from the batch prog Stephen Rainey Windows XP General 3 10th Jan 2007 12:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 PM.