Sign in to follow this  
Followers 0
GAM

Run PERL script from autoit

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Sh3llC043r

[size="5"] [/size]

Share this post


Link to post
Share on other sites

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.)

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