endy Posted February 23, 2006 Posted February 23, 2006 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.
ChrisL Posted February 23, 2006 Posted February 23, 2006 (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 February 23, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
endy Posted February 23, 2006 Author Posted February 23, 2006 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)
ChrisL Posted February 23, 2006 Posted February 23, 2006 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 [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
ChrisL Posted February 23, 2006 Posted February 23, 2006 This works.. Tested! Run("C:\Program Files\Microsoft Office\Office\Winword.exe c:\Crohn's.doc") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
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