Wednesday, 14 June 2017

Transfer files between two windows machines

There is lot of ways to do this.


First example is to use Robocopy to move files from one to another.

Let us consider i'm having "file.txt" in my drive(C:\InputFolder) which is in host1. Now i need to move that file into host2 machine by using following command.

C:\Windows\system32>robocopy C:\InputFolder \\host2\folder.

Copied that file in faster way by using folder name.

Another one is using "copy" also available in windows.

Copy which can copies files from one to another.


C:\Windows\system32>copy C:\InputFolder\file.txt \\host2\\destinationdirectory.

Note:Before you executing this commands you have to give write access to your 
destination folder for your user otherwise it throws Access denied error

No comments:

Post a Comment