Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch file to copy folder
Name: cpro2002 Date: December 18, 2008 at 07:51:41 Pacific OS: xp CPU/Ram: Core2Duo T7300 2Ghz, 1GB Product: Lenovo thinkpad / T61
Comment:
Hello,
I'm new to batch scripts.
I'm trying to copy a local folder to a folder on a remote PC.
Name: Mechanix2Go Date: December 18, 2008 at 08:09:27 Pacific
Reply:
If the remote is mapped:
copy c:\src x:\dest
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 2
Name: cpro2002 Date: December 18, 2008 at 08:20:42 Pacific
Reply:
Unfortunately, the remote is not mapped. Can this be included in the script as well?
0
Response Number 3
Name: Mechanix2Go Date: December 18, 2008 at 08:28:39 Pacific
Reply:
I'm pretty sure it can but I don't have a network. Wait for one of the other guys to jump in.
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 4
Name: Holla Date: December 18, 2008 at 09:53:17 Pacific
Reply:
cpro,
net use * \\remote_computer\sharename -maps to first available drive letter.
net use x: \\remote_computer\sharename - This will map to x: . But then if then if x: is already mapped, it will ask a question wheter to override the existing mapping.
If you want to avoid that interactive question, you can call "net use x: /d" prior to mapping a new location.
In Summary, you have to put these commands in a filename.bat file and execute them: net use x: /d net use x: \\remote_computer\sharename copy source\location\files* x:\desitnation\location
change the specifics to suite ur needs.
-- Holla.
0
Response Number 5
Name: cpro2002 Date: December 18, 2008 at 12:53:12 Pacific
Reply:
excellent.
thanks for the help with this!
0
Response Number 6
Name: AJ (by William Jimenez) Date: December 19, 2008 at 10:40:18 Pacific
Reply:
you could also use the default admin share to copy the files.
Summary: I need some help creating a batch job to copy folders from \\serverName\location$\folders to \\serverName\new Folder\folders. And I need to read the folder names from a txt. file and only copy those ...
Summary: 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 exis...