kam Posted October 24, 2007 Share Posted October 24, 2007 Hi All,I am using Altova Authentic, there i should create a macro, for executing perl script.I created a form, in the onclick event.I want to execute the perlscript with parameters that are got dynamically from textbaxes in the form.Is it possible?As of now I am using ShellExecute API and calling a .bat file containing the perl script. But I am not able to pass parameters dynamically.Can anybody help me with this.Thank You in advance Link to comment Share on other sites More sharing options...
aspnetguy Posted October 24, 2007 Share Posted October 24, 2007 you could use AJAX and call the script through the browser and pass params via GET. You would need to append some redireciton info to the script when the processing is done to go back to the correct browser page. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 24, 2007 Share Posted October 24, 2007 If the server can run perl scripts you can just set the script as the form handler.<form action="submit.pl"> Link to comment Share on other sites More sharing options...
aspnetguy Posted October 24, 2007 Share Posted October 24, 2007 duh lol I really need to read better. Link to comment Share on other sites More sharing options...
kam Posted October 25, 2007 Author Share Posted October 25, 2007 duh lol I really need to read better.It is offline, I dont connect to the web at all, so I cannot use Ajax.function Button1_EventClick() { This = Button1;EditBox1.Text ="Done";var oShell = new ActiveXObject("Shell.Application");var commandtoRun = "perl.bat";// Invoke the execute method.oShell.ShellExecute(commandtoRun, "", "", "open", "1"); This is the code I am using.this perl.bat contains command to run perlscript.I have arguments to be passed to the perlscript also. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 25, 2007 Share Posted October 25, 2007 If your question is how to send arguments to the perl script, you would need to send those arguments to the batch file (included in commandtoRun), and then have the batch file forward its arguments to the perl script.http://www.microsoft.com/resources/documen...t.mspx?mfr=true Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.