Computing.Net > Forums > Programming > Batch file to copy from network dri

Batch file to copy from network dri

Reply to Message Icon

Original Message
Name: Imigry
Date: June 30, 2006 at 04:24:44 Pacific
Subject: Batch file to copy from network dri
OS: XP sp2
CPU/Ram: 1.6Ghz/256mb
Model/Manufacturer: Legacy
Comment:

I would like to create a batch file to copy from one network drive to another. \\Desktop\shareddocs\dir1\file1 to c:\douments and settings\all users\documents\file1. It is to overwrite/update the existing file


Report Offensive Message For Removal


Response Number 1
Name: Shr0Om
Date: June 30, 2006 at 06:05:33 Pacific
Reply: (edit)

That can be done with Xcopy.
Type XCOPY /? in cmd for a list of avaible options.

To use in a batch, just paste the command in notepad, and save the file as a .bat or .cmd


Report Offensive Follow Up For Removal

Response Number 2
Name: Imigry
Date: July 2, 2006 at 19:02:32 Pacific
Reply: (edit)

The copy process is easy enough, it is the directing to the network drive that is giving me grief. I keep getting a parse error.
I would just drag the file over to update it, but this has to be simple enough for someone who is not that sure on how to open anything.


Report Offensive Follow Up For Removal

Response Number 3
Name: Shr0Om
Date: July 3, 2006 at 01:49:22 Pacific
Reply: (edit)

Dont you have the network drive letter assigned in windows?


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Batch file to copy from network dri

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge