August 1, 2007

Send mail from the command line

Ever need to send a one-line email from a DOS/CMD batch file? If your PC or Server has .Net 2 installed you can use this application.

It’s straightforward. Place the cmdSendmail.exe in your path or working directory and then type something like this at the command line:-

cmdSendMail you@emailtest.com~you@somewherelse.com~The Subject~The main text of the message~you@somewherelse.com~pass123~mail.somewherelse.com

Usage

cmdSemdMail {command string delimited by tilde}

To send an email create a single string with all the paramters of your message. Use the tilde (~) to delimit the paramters of your email.

cmdSendMail Download

August 1, 2007

Two ways to call a URL from a batch

Sometimes it’s useful to extract a web page to a file from a Windows batch.

For example I have a batch file that downloads financial figures every day, processes them and updates a database.

vbcurl http://myfinancialfigures.com/something.php >mydatafile.htm

If you don’t have a copy of Opera handy use a statement like the following to read the source from a page that blocks right click:-

vbcurl http://annoyingwebsitesthat.com/blockrightclicks.php >secret_source.htm

Vbcurl

July 24, 2007

Encrypt PayPal or AlertPay button code

Encrypt HTML

Click the above link to download a small tool for encrypting small chunks of HTML such as PayPal and AlertPay buttons. It doesn’t actually encrypt code it obfuscates it which is a fancy way of saying it jumbles it up a bit. It’s enough to deter the casual thief from checking out the successful return URL where he might find your goodies.

It’s a VB6 application (Google site:microsoft.com vb6 runtimes if you don’t have them already).

Free to use but usual disclaimers, use at your own risk etc..

July 19, 2007

Run a cron from your home PC

You could prepare a batch to call VBCurl, and call it from a Windows Schedule too. However if you are looking for something quick to setup you might find this better.

The application is written with VB6. It’s not a commercial grade product but it does the job. I meant to add it to the System Tray but never got around to it and as VB6 is no longer supported it’s unlikely I will bother. However it’s been working well for several years and as far as I know remains bug free!Screenshot

Using it is self explanatory so I won’t bother with much detail. Only to say use at your own risk, no warranty, no guarantee, blah blah blah…. but at least it’s free!

Download HomeCron.zip