?
Solved

Batch file to encrypt files and send email

Posted on 2004-08-27
6
Medium Priority
?
314 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
sgalzin earned 152 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 148 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Simple Linear Regression

800 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