Jump to content

how to open non .exe files?


Recommended Posts

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

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...