Email with .bat

January 20, 2011 at 09:47:42
Specs: Windows 7
Hi all.

Well basically what i would like to do is,

I run a small batch file to get pc info like serial numbers, HDD space remaining, temp specs, last time rebooted etc at my office,(I do thier IT)

I was just wondering if It would be possible for the batch file to email me the information once a month automatically. 18 pc's use OUTLOOK, and 9 pc's use OUTLOOK EXPRESS.

Please help. the txt file the batch puts out is called HELPYOURSELF.txt

See More: Email with .bat

Report •

January 20, 2011 at 10:49:31
Take a look at blat (

It would require that you have the file (a single exe) on their computer and a mail server you can use to send.

The command to send would looks like this:

blat yourtextfilehere.txt -f -server -t -subject "Your Subject Here"


Alternatively, if smtp email is an issue going out - what about setting your script to ftp the file to some off site ftp location. This could work well by adding a date to the filename and allowing you to have an archive for each of the PCs that you (or your client) can go back and reference.

Report •

January 21, 2011 at 02:53:46
Thanks for the feedback, I will try blat. I'm not to clued up with networking batch files. how would i go about sending (ftp) the txt file automatically once a month through the batch file.?

Report •

January 24, 2011 at 09:55:15
Assuming you have an ftp server that you have control over (I'd suggest creating a user with a quota, that has limited access to a single directory as we'd have to store the u/p in a script file)

If you're comfortable with that, it's fairly simple. If you can provide the script you're using to capture the data, I'd be happy to write out an example of how you could set it up to upload to your ftp server.

Report •
Related Solutions

Ask Question