Scripts Thread, How to copy files from two domains in Coding and Web Development; How would you write a script to copy folder1 to folder 2 on different domains?
Ive tried xcopy but you ...
18th February 2008, 08:00 PM #1
How to copy files from two domains
How would you write a script to copy folder1 to folder 2 on different domains?
Ive tried xcopy but you need authentication before you can copy the files.
How would you encorporate this into a script of either bat of vbs.
So basically im wanting to copy c:\folder1 from \\123.456.78.9 to c:\folder2 on \\987.654.32.1 but i need to enter authentication details.
Can someone help?
IDG Tech News
18th February 2008, 08:08 PM #2
Perhaps consider mapping 2 drives in the script where you can easily use credentials?
18th February 2008, 08:58 PM #3
- Rep Power
Guess you could use syncback to do this, supports authentication and mapping network drives. Can use windows scheduled task to run.
18th February 2008, 09:09 PM #4
You can do this with rsync http://www.samba.org/rsync/
We back up linux and windows servers this way, it uses a local password and can be scripted
Edit: you want cwrsync for windows http://itefix.no/cwrsync/
18th February 2008, 09:30 PM #5
couldnt you just map the drive on 1 server and then use a robocopy script to copy all the data accross?
18th February 2008, 10:43 PM #6
I could be wrong but something like /u [Username] /p [password] or -u [username] -p [password] at the end of the script rings a bell.
By originofsymmetry in forum Scripts
Last Post: 2nd October 2007, 01:16 PM
By Dos_Box in forum Learning Network Manager
Last Post: 12th April 2007, 11:42 AM
By dezt in forum How do you do....it?
Last Post: 5th July 2006, 12:43 PM
By browolf in forum Scripts
Last Post: 28th November 2005, 11:28 AM
By tosca925 in forum Windows
Last Post: 20th October 2005, 07:48 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)