Guest themav54 Posted September 2, 2004 Share Posted September 2, 2004 Hi, I am trying to open outlook through autoit and it doesn't seem to be working. This is my script file: Run("outlook.exe", "C:\Program Files\Microsoft Office\Office", @SW_MAXIMIZE) It says that it cannot find the file specified. Outlook.exe is in that directory. What am I missing? Thanks. Link to comment Share on other sites More sharing options...
Guest themav54 Posted September 2, 2004 Share Posted September 2, 2004 Never mind - I realized that the script file must in the same folder as outlook. Thanks. Hi, I am trying to open outlook through autoit and it doesn't seem to be working. This is my script file: Run("outlook.exe", "C:\Program Files\Microsoft Office\Office", @SW_MAXIMIZE) It says that it cannot find the file specified. Outlook.exe is in that directory. What am I missing? Thanks. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Valik Posted September 2, 2004 Share Posted September 2, 2004 [rant]Jon, CyberSlug, or anybody else for that matter, could you please, please, please explicitly state in the help file that the "filename" parameter must be a full path. For some reason, everybody just assumes the working directory means path to file, even though its an optional parameter. If it was the path to the file, people, why would it be optional?[/rant]PS: Jon, you should modify the forum to do something with the [rant] tag Link to comment Share on other sites More sharing options...
JSThePatriot Posted September 2, 2004 Share Posted September 2, 2004 There are 3 types of programmers/scripters:Those who think outside the box.Those who think inside the box.Those who can't find the box.-- Me (As far as I know)@ValikJust wanted to let you know your sig is coo.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
MHz Posted September 3, 2004 Share Posted September 3, 2004 @Lar Run("outlook.exe", @SW_MAXIMIZE) ;Would not work, outlook has no path that the system knows? Run("C:\Program Files\Microsoft Office\Office\outlook.exe", @SW_MAXIMIZE) ;Would may work so long as it can see within it's own working directory? Run("outlook.exe", "C:\Program Files\Microsoft Office\Office", @SW_MAXIMIZE) ;Would not work, outlook has no path that the system knows? Run("C:\Program Files\Microsoft Office\Office\outlook.exe", C:\Program Files\Microsoft Office\Office", @SW_MAXIMIZE) ;This Does work as is giving the system the path to the executable and the executable knows it's working path? This is same as making shortcuts, basic commands etc. No bug in Autoit. Nor needing @comspec? I think that general knowledge has been overlooked here? Do you agree? Last example works as it can see within it's own working directory. Link to comment Share on other sites More sharing options...
CyberSlug Posted September 3, 2004 Share Posted September 3, 2004 [rant] Jon, CyberSlug, or anybody else for that matter, could you please, please, please explicitly state in the help file that the "filename" parameter must be a full path. For some reason, everybody just assumes the working directory means path to file, even though its an optional parameter. If it was the path to the file, people, why would it be optional? [/rant]Yeah, that should be made clear for the Run and RunWait functions..... Anyone have an idea how to also explain the concept of a working directory in one or two sentences? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted September 3, 2004 Share Posted September 3, 2004 Yeah, that should be made clear for the Run and RunWait functions..... Anyone have an idea how to also explain the concept of a working directory in one or two sentences? <{POST_SNAPBACK}>Does it have to be polite...? Link to comment Share on other sites More sharing options...
ezzetabi Posted September 3, 2004 Share Posted September 3, 2004 When you write a filename without any path, Autoit look for it in @WorkingDir . That is the folder where the system where pointing at when you called the script. Link to comment Share on other sites More sharing options...
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