Sign in to follow this  
Followers 0
JohnBailey

Syntax Parameters for Executable when sending email

3 posts in this topic

ok, all I need to know is the syntax for passing vars via an html link

Here's what I'm doing. Obviously this doesn't work, but should give you an idea of what I'm doing.

(the emailing works, only the parameter sending does not)

SendMailDefineVarsAndRun('myemail@mywebsite.com','Subject Line','<a href="I:\Auto-It files\Experiments\executeParameters.exe hi">send hi to executeParameters.exe</a>')

A decision is a powerful thing

Share this post


Link to post
Share on other sites



ExecuteParameters.exe source code

If $CmdLine[0] > 0 Then
    TrayTip('Testing', $CmdLine[1], 60, 1)
Else
    TrayTip('Testing', 'No parameters', 60, 1)
EndIf
Sleep(2000)

A decision is a powerful thing

Share this post


Link to post
Share on other sites

I've been told it cannot be done directly, and a suggestion was made.

http://www.kirupa.com/forum/showthread.php...d=1#post2201093

You can't launch a program with parameters. However you can use a batch file.

<a href="I:\Programs\Experiments\executeParameters.bat">send hi to executeParameters.exe</a>

and executeParameters.bat would be

I:\Programs\Experiments\executeParameters.exe hi

This is good, but now I'm curious and still wondering if there is a more "dynamic" way of doing this.

So...

Does anyone know why a url link cannot send params? What is it calling in the OS environment to even pull up a file? Is it calling an API of some kind?


A decision is a powerful thing

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0