Jump to content

Open website from batchfile


Recommended Posts

Posted

I'd like to know if it is possible to open a link from a batchfile, without calling the webbrowser..

So NOT like this:

"C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://www.msfn.org

Because then the batchfile would open IE. I want it to open the Default internetbrowser.. that could be IE, but could also be Firefox or Opera or whatever..

I'm not sure if it is possible though..


Posted
  >%TEMP%\_.url (ECHO/[InternetShortcut] &ECHO/URL=http://unattended.msfn.org/unattended.xp/) &%TEMP%\_.url &&del %TEMP%\_.url

It should be on one line, any line(s) not beginning with two spaced has wrapped.

Posted (edited)

The VBS script way

CreateObject("Wscript.Shell").Run("Http://www.msfn.org")

This opens IE as that is the only browser I use, so I do not know if it will work with other browers.

Edited by gunsmokingman
Posted
Notice how my line has no quotes in it.

start http://www.msfn.org

haha yess I know, thats what I meant with my 2nd post... it was stupid I didn't even try without quotes before posting here!

Thanks for the help.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...