Send email using Blat not working in scheduled bat file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
girish3110
Posts: 1
Joined: 02 Sep 2015 11:30

Send email using Blat not working in scheduled bat file

#1 Post by girish3110 » 02 Sep 2015 11:40

Hello! I’m currently having an issue when trying to send emails using Blat by scheduling a batch file. I’ve got a software package installed that has got Blat bundled into it and the latter has already been configured. I need to send periodic emails and I’m using Blat that came bundled in the package. The path is something like that:
E:/folder1/subfolder1/subsubfolder1/blat.exe

When launching the batch file manually, the email is sent out without any hassle. However, when scheduling the batch file nothing is sent. How can I resolve this issue?

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Send email using Blat not working in scheduled bat file

#2 Post by Squashman » 02 Sep 2015 12:06

Need way more information.
viewtopic.php?f=3&t=6108

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Send email using Blat not working in scheduled bat file

#3 Post by foxidrive » 02 Sep 2015 19:59

It's true that good info helps diagnose a problem, but because task scheduler breaks it then the reason is either lack of permissions or the working directory needs to be explicitly set, as task scheduler defaults to the system32 folder I believe.

Probably the former - as the default system account doesn't have access to network resources.

Post Reply