speedi Posted October 29, 2009 Share Posted October 29, 2009 The follwing command (I have tried several versions) does not start the browser... the path to chrome.exe is correct (copied from quick launch toolbar). It just does nothing. run in Scite editor gives me no clues... Thanks for any help... Jim run('C:\Documents and Settings\Jim Mihalski\Local Settings\Application Data\Google\Chrome\Application\chrome.exe "http:\\www.accuweather.com"', "", @SW_MAXIMIZE) this command with iexplore wokrs fine. run('C:\Program Files\Internet Explorer\IEXPLORE.EXE "http:\\www.accuweather.com"', "", @SW_MAXIMIZE) Link to comment Share on other sites More sharing options...
cherdeg Posted October 29, 2009 Share Posted October 29, 2009 Hi, my version of chrome is definitely not installed in "C:\Documents and Settings\Jim Mihalski\Local Settings\Application Data\Google\Chrome\Application\", but in "C:\Program Files\Chrome\". Please re-check that path - only the fact that there exists a "chrom.exe" doesn't mean it's the main executable. Regards, Chris Link to comment Share on other sites More sharing options...
Juvigy Posted October 29, 2009 Share Posted October 29, 2009 Is chrome your default browser? If yes you can use shellexecute() Link to comment Share on other sites More sharing options...
speedi Posted October 29, 2009 Author Share Posted October 29, 2009 Chris, I was also suprised at the path.. I did check "program files" not there and I checked the actual path as shown in the script and sure enough chrome.exe is there.... It is the exact Path from more than one goggle chrome shortcuts properties... see attachment...Hi,my version of chrome is definitely not installed in "C:\Documents and Settings\Jim Mihalski\Local Settings\Application Data\Google\Chrome\Application\", but in "C:\Program Files\Chrome\". Please re-check that path - only the fact that there exists a "chrom.exe" doesn't mean it's the main executable.Regards,Chris Link to comment Share on other sites More sharing options...
weaponx Posted October 29, 2009 Share Posted October 29, 2009 Problem 1: Your url's aren't even formatted correctly.Problem 2: You need a command line switch for Chrome, you can't just tack on the url after chrome.exe Link to comment Share on other sites More sharing options...
speedi Posted October 29, 2009 Author Share Posted October 29, 2009 You are the man! the following worked correctly.. ShellExecute("chrome.exe", "http:\\www.accuweather.com","","") I am still perplexed why my run command did not work!!! Thank you... Servant 1 Link to comment Share on other sites More sharing options...
speedi Posted October 29, 2009 Author Share Posted October 29, 2009 Juvigy,, Thanks again.. My desired web page: ShellExecute("chrome.exe", "http://www.accuweather.com/forecast.asp?partner=accuweather&traveler=1&zipChg=1&zipcode=18101&metric=0","","") Works perfectly.... Danke, Grazie, Merci beaucoup Link to comment Share on other sites More sharing options...
jvanegmond Posted October 29, 2009 Share Posted October 29, 2009 Problem 2: You need a command line switch for Chrome, you can't just tack on the url after chrome.exe You, Sir, are a fraud and an impostor. Joking aside, Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\Jos>cd "C:\Users\Jos\AppData\Local\Google\Chrome\Application\" C:\Users\Jos\AppData\Local\Google\Chrome\Application>chrome.exe http://www.icanh ascheezburger.com this works! github.com/jvanegmond Link to comment Share on other sites More sharing options...
weaponx Posted October 29, 2009 Share Posted October 29, 2009 I'm going to be honest. I don't even use Chrome, I was just guessing lol. Link to comment Share on other sites More sharing options...
jvanegmond Posted October 29, 2009 Share Posted October 29, 2009 I'm going to be honest. I don't even use Chrome, I was just guessing lol.Haha kudo's for admitting. github.com/jvanegmond 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