Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

opening url from vbscript

- - - - -

  • Please log in to reply
3 replies to this topic

#1
sanjeev18

sanjeev18

    Great Helper

  • Member
  • Pip
  • 71 posts
  • Joined 11-October 10
  • OS:Windows 7 x86
  • Country: Country Flag
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 ?


Please Help Others


How to remove advertisement from MSFN

#2
CoffeeFiend

CoffeeFiend

    Coffee Aficionado

  • Super Moderator
  • 5,399 posts
  • Joined 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag
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.
Coffee: \ˈkȯ-fē, ˈkä-\. noun. Heaven in a cup. Life's only treasure. The meaning of life. Kaffee ist wunderbar. C8H10N4O2 FTW.

#3
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,419 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
Or as a single line of vbs script
CreateObject("WScript.Shell").Run("http://www.google.com")



GunSmokingMan



#4
sanjeev18

sanjeev18

    Great Helper

  • Member
  • Pip
  • 71 posts
  • Joined 11-October 10
  • OS:Windows 7 x86
  • Country: Country Flag
thanks guys it works
Please Help Others




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users