Link to home
Create AccountLog in
Avatar of johnnydcusa
johnnydcusa

asked on

Batch or VB script to open web page

I am looking for a batch script or vb script which will open the following web page when run as a logon script. I have tried start http://www.surveymonkey.com/s.aspx?sm=fzy9f6G4DutpfNXaNrSQQg%3d%3d but it just defaults to the home page.

Thanks

John
ASKER CERTIFIED SOLUTION
Avatar of DjDezmond
DjDezmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of johnnydcusa
johnnydcusa

ASKER

The first suggestion does the same as start then the URL - and it goes to the SurveyMonkey homepage not the link. I thought this may be something wrong with how it is written but maybe it is a SurveyMonkey.com website issue.

The second suggestion ends with error
Script: path to script
Line : 2
Char: 3
Error: The sytstem cannot find the specified file

code: 80070002
sourse: wshshell.exec

I changed iexplore.exe to the full path for iexplore.exe and it worked. Is there a way for VB to find iexplore.exe without the full path?
Have you tried my script?
There are two ways to execute a command line in vbscript... one is to use Shell.Exec, and the other Shell.Run. Im not sure what the differences are, but i think the .Run has more support for finding exe's rather than supplying the full path name.

Also, the web page address is ok, i just clicked on the link and it didn't take me to the homepage.

Try Kevin_Uk05's example...
I have split the points as I found the info from both of you helped me come up with a solution. Thanks

JOhn