bioloyx Posted April 18, 2011 Share Posted April 18, 2011 Well I am just a beginner and I have read the tutorials on using the run command. I think it's called a 'command'. Please correct me if I'm wrong about that - or anything, really. I can use Run("notepad.exe") and it would open up notepad and Run("mspaint.exe") would open up paint, but when i try something like Run("chrome.exe"), it shows the loading thing next to the mouse for a couple milliseconds, and then nothing happens... What am I doing wrong? Link to comment Share on other sites More sharing options...
wakillon Posted April 18, 2011 Share Posted April 18, 2011 notepad and mspaint are microsoft executables, but for chrome.exe you needto indicate the path like this firefox example :Run ( @ProgramFilesDir & '\Mozilla Firefox\firefox.exe' )you have to find your chrome.exe path ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
GianAutoitprogrammer Posted April 18, 2011 Share Posted April 18, 2011 I dont use the run command but I use the shellexecute("") command Too execute Google Chrome in XP but I dont know in 7 and Vista Here is the Code: Shellexecute(@UserProfileDir & "\Local Settings\Application Data\Google\Chrome\Application\Chrome.exe") I hope it helps Link to comment Share on other sites More sharing options...
bioloyx Posted April 18, 2011 Author Share Posted April 18, 2011 (edited) Thanks wakillion. So, I'm assuming the dir is directory? What other files count as a directory? It didn't work for me gian... Thank you though! OH it worked nevermind... I just did ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") Edited April 19, 2011 by bioloyx Link to comment Share on other sites More sharing options...
bioloyx Posted April 19, 2011 Author Share Posted April 19, 2011 Thanks wakillion. So, I'm assuming the dir is directory? What other files count as a directory?It didn't work for me gian... Thank you though!Wait, you start the path from the Program Files folder right? What if it's in the Program Files(x86) folder? 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