Jump to content
Vinodphp

Run - not working

Recommended Posts

Vinodphp

Hi All,

I have installed AutoIT latest version while learning through the project documentation, I wanted to run the "winzip90.exe" file by using the command Run("winzip90.exe") I can see that some times it works but most of the times it fails to run the installer.

I have tried several things placing the installer in different folder providing it the path but still nothing works can anyone provide me the solution for this problem.

Thanks & Regards,

Vinod Kumar

Share this post


Link to post
Share on other sites
water

You have to specify the full path to the exe. Let's assume the exe is in the same directory as your script:

Run(@ScriptDir & "\winzip90.exe")

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
TheBrainiac

As water pointed out, if you want to make sure the executable file is found, you have to use the full file path.

OS internal programs and ones in the same directory as yours can be found using only the file name, because the OS has specific shortcuts in place to make finding them easier, and because of relative file paths, which are a feature to let you easily navigate the directory of your program without knowing its absolute location in the directory tree.

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

×