Transferring Files From Local Computer to Connected Remote Desktop Session

Transfer data from Remote computer to Local computer and Local computer to Remote Computer without any aditional software.

It’s quite easy to transfer files between computers on the network, all you have to do is map your local drive where your folder is available for keep the transferred data files.

Windows Remote Desktop actually has a feature built in that allows you to share any of the local drives on the host computer with the remote computer without having to manually share specific folders or drives.

For the security reasons most of the users keep this function disabled for their environement. It can be disable and enable with system settings.

1. You can start the Remote Desktop Connection from Start > All Programs > Accessories > Remote Desktop Connection or run Mstsc.exe from the Run dialog or Search box. The window will show the current connection in the computer box or you can select a previous session from the drop down.

2. Click the Show options button at the bottom left.

3. This will display the connection preferences, click on the Local Resources tab. Look near the bottom in the section “Local devices and resources” and click the More button.

4. An entry called Drives will be in the list, if you tick that all drives will be mapped to the Remote Desktop and shared. If you only want to share specific drives which is safer, click the + to the left and expand the drives list, then you can specifically tick which drives that need to be shared, including ROM drives and USB flash drives the haven’t been inserted yet (Drives that I plug in later). Click OK when you’re done.

5. Upon trying to connect you will be asked if you trust the remote connection and clicking Show Details will show that it’s trying to share your drives. If you’re happy then tick the box to not be asked again and press Connect.

After a successful connection go to Computer or This PC on the remote computer and under Other you should see the shared drives. Now you can start transferring files to and from your remote computer.

After all these stuff there is a native coomand line script that we use for this process.


Remote computer to Local computer:

IF EXIST "Location 1" Xcopy /D "Location 1" "\\tsclient\Location 2"

Location 1: - Data folder location on Remote Computer. The location where the data file is stored on remote computer. 

Location 2: - Data folder location on Local Computer. Where the data will move. Please make sure the location should be like this: E\Data not E:\Data.

Example: - IF EXIST "C:\Users\Username\Desktop\data" Xcopy /D "C:\Users\Username\Desktop\data" "\\tsclient\E\Data"


Local computer to Remote Computer:

IF EXIST "\\tsclient\Location 2" Xcopy /D "\\tsclient\Location 2" "Location 1"

Location 1: - Data folder location on Remote Computer. The location where the data file is stored on remote computer. 

Location 2: - Data folder location on Local Computer. Where the data will move. Please make sure the location should be like this: E\Data not E:\Data.

Example: - IF EXIST "\\tsclient\E\Data" Xcopy /D "\\tsclient\E\Data" "C:\Users\Username\Desktop\data"


There is another process that we can follow-up with to move the data file within these two environement. If the Clipboard function is on from the RDP then this feature (Copy and Paste) will work for sure. Youc an see the attched image for more clarification.

Related Posts:

0 Comments: