jumbo Posted March 19, 2009 Share Posted March 19, 2009 Hi, I have a simple perl script in c:/folder/sample.pl. How do i invoke this script with the help of autoit3? Link to comment Share on other sites More sharing options...
KaFu Posted March 19, 2009 Share Posted March 19, 2009 What you need is the perl interpreter. Use the standard DOS parameters in a run() command to call the script. If .pl extension is associated with the interpreter on your system shellexecute the script directly will do too. Look up run()+StdoutRead() to capture console results. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
jumbo Posted March 19, 2009 Author Share Posted March 19, 2009 By doing this via command line will be manual...but I want the perl script to get invoked automatically...Can this be done using autoIt? Link to comment Share on other sites More sharing options...
jvanegmond Posted March 19, 2009 Share Posted March 19, 2009 By doing this via command line will be manual...but I want the perl script to get invoked automatically...Can this be done using autoIt?invoked by who? User or script? github.com/jvanegmond Link to comment Share on other sites More sharing options...
jumbo Posted March 19, 2009 Author Share Posted March 19, 2009 By script... Link to comment Share on other sites More sharing options...
jvanegmond Posted March 19, 2009 Share Posted March 19, 2009 Ok, this is exactly what KaFu just told you but in code: Run("perl.exe C:\yourscript.pl") ; ( lol at perl.exe ) ShellExecute("C:\yourscript.pl") github.com/jvanegmond Link to comment Share on other sites More sharing options...
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