MSFN Forum: opening url from vbscript - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

opening url from vbscript Rate Topic: -----

#1 User is offline   sanjeev18 

  • Great Helper
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 11-October 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 04 February 2011 - 01:03 AM

hey guys i want simple thing that is

my vbscript would open url in my default internet browser like internet shortcut can anyone make it ?




#2 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,399
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 February 2011 - 01:43 AM

Option Explicit
Dim wsh
Set wsh=WScript.CreateObject("WScript.Shell")
wsh.Run "http://www.google.com"


That will open google.com in the default browser.

#3 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,352
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 04 February 2011 - 01:52 PM

Or as a single line of vbs script
CreateObject("WScript.Shell").Run("http://www.google.com")



#4 User is offline   sanjeev18 

  • Great Helper
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 11-October 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 February 2011 - 01:14 AM

thanks guys it works

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy