How to reach unreachable or copy files to RDP – Part 2

Part 1

When I tried to transfer 7mb of binary file using the approach from the part 1, it took so long, so I could not complete it.

Then I had to switch to more efficient base64 conversion

With that approach I immediately converted my 7mb binary to 10mb of base64 text file.

But when I tried to copy-paste it via clipboard over RDP, it hanged. I tried notepad and wordpad.

Then when I tried to split 10mb into 1mb chunks and copy-paste them, I could do that with wordpad. After paste it hanged 15-20 seconds. Then I could copy-paste next chunk. Needless to say, that was very annoying to jump back and forward to copy the whole file.

So I came up with an idea which I am going to implement and write in the next blogpost.

The idea was to run two PowerShell scripts: one on the host machine, second – on the RDP machine. Then copy-paste file by chunks and detect clipboard changes. Having this approach we can choose chunk size small enough to have RDP paste without hangs. Then by changing clipboard we notify host machine that RDP machine is ready for the next chunk.

So I see it as a client-server application driven by clipboard 🙂

Please stay tuned to see how I’m going to implement that…

Advertisements

About mnaoumov

Senior .NET Developer in Readify
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to How to reach unreachable or copy files to RDP – Part 2

  1. Pingback: How to reach unreachable or copy files to RDP | mnaoumov.NET

  2. Pingback: [C#/PowerShell] Clipboard Watcher | mnaoumov.NET

  3. Adrian says:

    I would like to wait and see your automated program that splits file and send over clipboard. It will be of great help to me. Thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s