Sign in to follow this  
Followers 0
endy

how to open non .exe files?

7 posts in this topic

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



#2 ·  Posted (edited)

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

Thanks! I wil try it.

Share this post


Link to post
Share on other sites

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

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

Great thanks, ChrisL! It really works!

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