|
Answer» Hallo, please, does anybody know how can I make a batch FILE with command to copy one folder to another computer in LAN Thanks in advanceYou have to map a drive with the target Computer.
for example map drive c: as drive y: on your MACHINE:
net use y: /delete :: DISCONNECTS y: if it is mapped.
net use y: \\computername\c$
xcopy ..... y:\....
net use y: /delete
hope it helps uliIf you don't want to map a drive LETTER, you can copy using the UNC path. With the "map drive" or "UNC" method, you will need to make sure that permissions are set properly. Using the previous example, it would be like:
xcopy file.ext \\computername\c$\path\to\dest\
|