Question : copying files from one machine to another

Hi ALL,

We are setting up a DR Server, to browse to directories on the DR server the login dialog box appears each time as i.e. \\MyDRserver\myWork and i have to enter the domain\username and password

I want to create a windows batch file which copies a file from one location to a location on the server, the only problem is i am not sure how it will handle the log in process when the login box appears?

Any ideas would be greatly appreciated.

Thanks

Answer : copying files from one machine to another

I think you need to add this to the batch file:

NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]

See this Microsoft article for additional information:

Net use

https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true

Random Solutions  
 
programming4us programming4us