Reputation: 1197
I want to write a script that will copy some files from LAN computer to my pc. I don't know what would be the syntax of this command.
Could anyone help me related to this?
One thing more, that in my case both the machines are using Windows.
Upvotes: 2
Views: 20183
Reputation: 16045
net.exe use
to map remote share to temporary drive lettercopy
or robocopy
or xcopy
or whever to copy the files net.exe use
to remove used mapping and free the letterNote that Windows (95/98/ME) and WindowsNT ( NT3 / NT$ / 2000 / XP / Vista / 7) are radically different operating systems and have different DOS commands and options, especialy regarding copying.
Upvotes: 3
Reputation: 148524
xcopy /z \\myServer\myFolder c:\
/Z Copies networked files in restartable mode.
where \myServer\myFolder is a unc path , or if you have network drive ( for example o:
) so use :
xcopy /z o: c:\
Upvotes: 3