kam 0 Posted October 24, 2007 Report 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 Quote Link to post Share on other sites
aspnetguy 30 Posted October 24, 2007 Report 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. Quote Link to post Share on other sites
justsomeguy 1,135 Posted October 24, 2007 Report 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"> Quote Link to post Share on other sites
aspnetguy 30 Posted October 24, 2007 Report Share Posted October 24, 2007 duh lol I really need to read better. Quote Link to post Share on other sites
kam 0 Posted October 25, 2007 Author Report 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. Quote Link to post Share on other sites
justsomeguy 1,135 Posted October 25, 2007 Report 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.