GAM Posted April 3, 2010 Posted April 3, 2010 I have my perl script (c:\automation\script.pl) that I have to call from Autoit script. I have tried the below script but did not work. I have tried... Run(@ComSpec & " /c " & 'c:\automation\script.pl', "", @SW_SHOW) Can somebody help me how to call the above perl script (script.pl) from autoit? Please!!!! Neil
Fire Posted April 3, 2010 Posted April 3, 2010 (edited) Hi GAM. Do you have ActiveState Perl Interpreter on your computer? If you have an older version on your computer you can upgrade it from official site (activestate.com) BTW. this works for me(If you hear beep sound this means execution was successfull. Perl script for test #!/usr/bin/perl print "TEST\a\r\n"; system("exit"); Right execution of your script in that case will: Run("cmd.exe /c " & @HomeDrive&"\automation\script.pl",@ScriptDir,@SW_HIDE) Edited April 3, 2010 by Sh3llC043r [size="5"] [/size]
TMXOD Posted April 3, 2010 Posted April 3, 2010 If you have PERL properly installed, you may also try using the ShellExecute() function, as it will allow you to run the script with its associated program (or any program for which the file type has an associated action (e.g. Edit, Run, Debug, etc.)
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