All Over The Road
Slowly but surely I am creating my web presence. I imagine it will take a lot of discipline to keep any blog up to date. And it probably takes a big ego to think that you have a something interesting to say every day. Well, let's hope I can find enough to keep talking - although talking to oneself is talent worth developing.
Click on the player below to listen to my selection of tunes from International Artists Company website while you browse - and support independent artists!!

Station at KIAC and

Friday, April 18, 2008

Remote File access

Remote File Access Through E-Mail | My Technophilic Musings
Remote File Access Through E-Mail
My Sites: My Blog | My Tech Blog | Follow me on Twitter

Download: shantz-outlook-remote-file
Version: 0.1
Updated: March 23, 2008
Size: 1.19 KB
Hits: 796


This is a (proof-of-concept) outlook macro that you can use with an outlook rule to retrieve your files from your home/office PC by sending it a mail with a subject having a predefined special keyword and the body containing the names and paths of the files. The remote PC will then mail you the files on a predefined e-mail ID.

This project came into being after reading this post at lifehacker (original post and solution here). It listed a method to retrieve mails on your home/office PC by sending a “magic email” to it, but it was only for mac’s. Seeing that people wanted it for windows as well, I thought of making something up during lunch time at office.


1. Download the attached zip file ( and unzip it. It has a VB module “shantz-outlook-remote-file-access.bas” (can be opened with any text editor)

2. Create a new macro in Outlook. Copy the code contained in Module1.bas to the main source file of the macro.

3. Edit the code to change the e-mail ID to which the files will be e-mailed. Save the macro.

4. Create a new rule in Outlook. Choose to run the rule when a specific word is found in the subject. e.g. use “SendMeMyFiles”.

5. The action part of the rule should be “run a script”. Here you can choose the macro that you just created from the list shown by Outlook.

6. Save the rule and you are done.

Now try, sending a mail to the account that your outlook is configured to receive mail for, with the special keyword in the subject and a list of files (with their complete absolute paths on the remote computer) separated by semicolons (”;” without the quotes), and watch magic happen :).

e.g.: To:

subject: SendMeMyFiles

Body: c:\path\of\files\file1;d:\second\path\file2


* For this thing to work, outlook has to be running on the remote PC as this depends on a “client-side” rule.
* This is just a proof-of-concept as of now, so there is no error handling right now. Plus the e-mail body parsing is finicky and so the e-mail body should not have anything other than the file paths and names. This might change in future if I decide to update it.
* Don’t use it if your life depends on it. Use it for basic purposes and modify and improve it appropriately before you decide to use it seriously (You may submit your modifications here as well)
* It has been tested only on Outlook 2003, but might work on others as well.

No comments:

Creative Commons License
AOR (All Over the Road) by dublinjames is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.