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
Thanks
John
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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...
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...
ASKER
I have split the points as I found the info from both of you helped me come up with a solution. Thanks
JOhn
JOhn
ASKER
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?