Jump to content
Sign in to follow this  

Run PERL script from autoit

Recommended Posts


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!!!!


Share this post

Link to post
Share on other sites


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)


this works for me(If you hear beep sound this means execution was successfull.

Perl script for test

print "TEST\a\r\n";

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.