Hello,
My application has nothing to do with Web development, so there are no forms to be filled in.
I’m using JS to control a Windows application via its Component Object Model.
I invoke the application through its COM using a simple DOS batch script. The application generates a file which contains the date in its filename, that I want to send by email to a pre-determined email address (myself).
My first approach was to use blat, the freeware DOS smtp emailer, from the DOS script, on exit from the JS, but the problem is that I don’t know the filename, since it is date-dependent. I thought of returning the filename on exit from JS back to the invoking DOS script, and then executing blat. Is this possible?
The other option I explored was to execute blat from JS, either directly or via a DOS script. Is it possible to invoke a DOS program + parameters directly from JS?
Can I do any of this?
Many thanks,
Paul