+ Post New Thread
Results 1 to 6 of 6
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 ...
  1. #1
    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,096
    Thank Post
    314
    Thanked 296 Times in 206 Posts
    Rep Power
    122

    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?

    Tim

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,697
    Thank Post
    352
    Thanked 803 Times in 718 Posts
    Rep Power
    348
    Perhaps consider mapping 2 drives in the script where you can easily use credentials?

  3. #3

    Join Date
    Sep 2007
    Location
    Kirkenes, Norway
    Posts
    12
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    15

    Syncback

    Guess you could use syncback to do this, supports authentication and mapping network drives. Can use windows scheduled task to run.
    http://www.2brightsparks.com/syncback/syncback-hub.html

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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/

  5. #5
    jamin100's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham
    Posts
    1,074
    Thank Post
    151
    Thanked 100 Times in 80 Posts
    Rep Power
    33
    couldnt you just map the drive on 1 server and then use a robocopy script to copy all the data accross?

  6. #6

    Sylv3r's Avatar
    Join Date
    Jul 2005
    Location
    Co. Durham
    Posts
    3,239
    Thank Post
    375
    Thanked 381 Times in 339 Posts
    Rep Power
    148
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Mass Copy of Files and Folders
    By originofsymmetry in forum Scripts
    Replies: 6
    Last Post: 2nd October 2007, 12:16 PM
  2. Failed to copy files from CD
    By Dos_Box in forum Learning Network Manager
    Replies: 13
    Last Post: 12th April 2007, 10:42 AM
  3. Copy 2 files to every computer on the network
    By dezt in forum How do you do....it?
    Replies: 7
    Last Post: 5th July 2006, 11:43 AM
  4. script to copy files to machines
    By browolf in forum Scripts
    Replies: 1
    Last Post: 28th November 2005, 10:28 AM
  5. Replies: 6
    Last Post: 20th October 2005, 06:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •