Jump to content
Sign in to follow this  
endy

how to open non .exe files?

Recommended Posts

endy

Hi, how can I open directly non .exe (executable) files in AutoIt? (For example, certain word or excel file). I tried to use "run" command, but it didn`t work.

Share this post


Link to post
Share on other sites
ChrisL

Hi, how can I open directly non .exe (executable) files in AutoIt? (For example, certain word or excel file). I tried to use "run" command, but it didn`t work.

Run ("Winword.exe C:\Mydocument.doc") or Run ("Excel.exe C:\Mydocument.XLS") should do it

Edited by ChrisL

Share this post


Link to post
Share on other sites
endy

Sorry to say, but it gave me again the same message:

C:\Documents and Settings\baho\Desktop\docs.au3 (3) : ==> Unable to execute the external program.:

Run ("Winword.exe D:\AF.doc")

The system cannot find the file specified.

(I wanted to open AF.doc file located on my D: drive)

Share this post


Link to post
Share on other sites
ChrisL

Sorry to say, but it gave me again the same message:

C:\Documents and Settings\baho\Desktop\docs.au3 (3) : ==> Unable to execute the external program.:

Run ("Winword.exe D:\AF.doc")

The system cannot find the file specified.

(I wanted to open AF.doc file located on my D: drive)

Try putting the full path to the MSword application

Share this post


Link to post
Share on other sites
ChrisL

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.