remote connection with batch

D

daniel

I am trying to connect to a remote server using a batch
file and copy specific files. I can do this by using the
net use x: command and it works fine. I am calling
seperate batches and trying to use only one mapped
drive. I cannot /delete the mapped drive, it gives me
this error: "The device is being accessed by an active
process." "System error 85 has occurred."

Can anyone give me a tip on this or tell me how I can do
this without mapping a network drive.

Thanks

Daniel
 
W

Walter Schulz

I am trying to connect to a remote server using a batch
file and copy specific files.

net use \\server\ipc$ <password> /user:<dom>\<user>
copy \\server\share\dir\*.fil c:\temp\somewhere\server1
net use \\server\ipc$ /del


Ciao, Walter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top