Poco Script FAQ - Automatically running application programs

Poco Script FAQ - Automatically running application programs

Q: I want to be able to send an email to a Windows PC, with a subject like "execute script" and an attached xyz.bat batch file. The PC should be running a program to periodically check a POP mailbox, and if an incoming message has a subject of "execute script" (or whatever), it will save the attached xzy.bat to c:\xyz.bat and then execute it, and delete the email.

I've been trying this using SpreadMsg Lite, which works OK except you can't save an attached file to disk, so I have to use the text body of the message, which is OK, except that it truncates the incoming text to around 80 characters, and the particular command that I need to execute within my script is over 80 characters in length. (It can barely fit into the space allowed by a DOS command prompt, almost 2 lines).

So SpreadMsg Lite wraps it around to 2 lines when it saves it to the c:\xyz.bat file, and then attempts to execute it, but some of the -options don't get called properly, because it spans two lines in the batch file.

Any nice clean (hopefully) free way to do this?

Any other good (hopefully) free programs with similar functionality to SpreadMsg Lite - i.e. rules based email processing which goes beyond that of simple (Outlook Express) programs.

 
A: Provided you have control of the PC yourself then you could implement this using PocoMail. You can configure PocoMail to run scripts against incoming mail (and only that mail from a particular email address and a particular subject if you want to add ome security - something I'd strongly recommend). A script could achieve what you want. One user even wrote a pseudo- ftp client including authentication using PocoScript.