Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Why don't these work when trying to copy a file from one location to another?

1) Base64 encode the file at source, write (binary or ascii) base64 decoded at destination.

2) Open file in notepad, copy/paste contents into destination.

Is there a way to move a file as text with the clipboard? Example of use environment: transferring files over remote desktop without enabling shared local drives.

Edit - Just to clarify, I'm talking about any type of file, not just text (zip, for instance).

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

What kind of "Remote Desktop" -software do you use?

Are both machines the same OS, which OS?

If for example both are Windows machines and you use Microsoft's Remote Desktop, then you can simply copy text on your machine and paste it into the remote machine. (I just tested this from OS X to Windows)

The same features should apply for OS X machines and different OS'es over VNC.

Update

I tried this myself from OS X to windows through Microsoft's RDC.

share|improve this answer
    
I'm using the built-in Microsoft client, and in this particular case I am on 32-bit XP with a remote session to 32-bit Server 2003 R2. Because text is the only thing that will copy/paste (files don't), I am trying to encode the remote files as text and then copy/paste them to my local machine. –  wes Feb 22 '11 at 16:39
    
What base64 en/decoder do you use? –  deiga Feb 22 '11 at 16:41
    
I had been trying Python's base64 module: b64encode, b64decode. Example: base64.b64encode(open('myfile.zip').read()) and open('myfile.zip', 'w').write(base64.b64decode('<previous result>')) –  wes Feb 22 '11 at 16:42
    
Hmm, can't test python on any target machine now, so don't know why that doesn't work. I don't see any flaws, though. Updated the answer. @wes –  deiga Feb 22 '11 at 17:03
    
Alright, well your edit worked for me even on an encrypted 7z, so at least I know this is possible and I just need to tweak my implementation. Thanks! –  wes Feb 22 '11 at 17:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.