PDA

View Full Version : Print a random email signature using a batch file.


Samji
10-27-2005, 06:49 AM
Hello.

I know its possible to write a random email signature inserter for an email client using Pearl.

But is there anyway I can use a simple batch file instead, that reads from from a text file called signatures.txt which contains all my signatures separated by a delimiter such as ~ or #.

I would rather use a batch file rather than a Pearl script as am more familar with them than Pearl.

Thanks. I know something of writing batch files, I just need to know how you can get a batch file to read from another text (txt) file and pick certain sigs in it at random or in sequence depending on email sent or day, etc.

Thanks in advance. http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif

Kristian Joensen
10-27-2005, 06:56 AM
AFAIK, the batch scripting language isn't a real programming language with funcions and branching/if statements and stuff. I could be wrong. You can make anything with perl.

Samji
10-27-2005, 07:07 AM
Well, thanks for your help.

Samji
10-27-2005, 09:26 AM
Its alright now, I wrote a program and batch file that does the job perfectly.

Samji
10-27-2005, 03:44 PM
Here is a signature my program has produced automatically for Thunderbird.

http://img233.imageshack.us/img233/5138/autosig4sp.th.png (http://img233.imageshack.us/my.php?image=autosig4sp.png) http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif

Just have to make it read signatures from a long file of delimited text rather than the program itself and fix that client configuration tool shown and I can release the program open-source. http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif