Solved

Batch file to encrypt files and send email

Posted on 2004-08-27
6
304 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now