Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I search for any tool or batch command that allow me to copy file /folder from my local machine in a domain to a location in another remote server in different domain ?

share|improve this question
    
Is this for Active Directory? Also how are the Domains related, same Tree, same site? What kind of permissions do you have in the remote Domain? –  Pulse Jun 15 '10 at 10:13
    
my local pc is in active directory domain and the server is in another active directory domain and have admin user of remote server –  Amr Badawy Jun 15 '10 at 10:21

1 Answer 1

You could probably write a batch file to map a network drive to the remote server, specifying the domain\username and password, then use xcopy or roboocopy to do the copying.

net use Z: \\servername\sharename /user:domain\username password
robocopy C:\source\directory\ Z:\destination\directory /E /Z 

Something like that should do the trick, as long as you have sufficient permissions to map the drive. If you need to pass through a VPN or some such, it may be a bit harder.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.