Solved

Batch file to encrypt files and send email

Posted on 2004-08-27
6
306 Views
Last Modified: 2010-04-17
My boss is working on a project which involves:

1. Checking a mapped drive (on an AS/400 machine), to see if there are any files in the directory.
2. If there are files then it needs to encrypt these files and copy them over to the windows machine which the batch file is running on.
3. The files will be named with a 3 letter abbreviation first followed by a unique number. The abbreviation signifies various companies and based on the 3 letter code it should send an email containing the encypted file to the company which matches the code.

This will be done on a scheduler and we are thinking that doing this in a command line batch file would be the easiest way to do it. I am told my boss has some kind of command line encryption tool but we have not tested it. We will need some sort of way to do the emailing portion of things though (a command line email client perhaps?). Any tips would be appreciated!

Thanks
0
Comment
Question by:StickyDragon
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
sgalzin earned 38 total points
ID: 11913278
Hi,

Assuming you've got the encryption part taken care of, here's a tool you could use for sending an email from within a batch file :

http://www.glob.com.au/sendmail/

Hope that helps,

Stephane.
0
 

Author Comment

by:StickyDragon
ID: 11913666
Sorry, I forgot to mention that the server will be Windows 2000. This one is for unix.
0
 
LVL 28

Assisted Solution

by:FishMonger
FishMonger earned 37 total points
ID: 11914003
You could use Blat it's a command line email program for Windows.

http://www.blat.net/194/
0
 
LVL 4

Expert Comment

by:sgalzin
ID: 11914365
StickyDragon,

It should work for Windows : it has an .exe, an .ini, and everything you need !!

blat looks good also though :-)

Cheers,

Stephane.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question