Sign in to follow this  
Followers 0
speedi

can't start google chrome with script.

10 posts in this topic

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)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Is chrome your default browser? If yes you can use shellexecute()

Share this post


Link to post
Share on other sites

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

post-97-12568282627015_thumb.jpg

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

1 person likes this

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

I'm going to be honest. I don't even use Chrome, I was just guessing lol.

Share this post


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
Sign in to follow this  
Followers 0