JohnBailey Posted August 21, 2007 Posted August 21, 2007 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
JohnBailey Posted August 21, 2007 Author Posted August 21, 2007 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
JohnBailey Posted August 22, 2007 Author Posted August 22, 2007 I've been told it cannot be done directly, and a suggestion was made.http://www.kirupa.com/forum/showthread.php...d=1#post2201093You 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 beI:\Programs\Experiments\executeParameters.exe hiThis 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now