Internet Explorer

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kaptinevil
Posts: 1
Joined: 31 Aug 2012 01:45

Internet Explorer

#1 Post by kaptinevil » 31 Aug 2012 01:48

Hello.

I need a bat file that opens a NEW Internet explorer window, and open a specific site - and then close the dos prombt again.

so far ive created this

@echo off
"%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" http://www.google.com
exit


And it works, but the "exit" dosent exit the black dos prompt behind.

What am i doing wrong?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Internet Explorer

#2 Post by foxidrive » 31 Aug 2012 04:12

It should. How are you launching it?

This should work to load the default browser too, and exit by itself.

Code: Select all

@echo off
start "" http://www.google.com

Post Reply