PDA

View Full Version : Opening Webpages using Windows scripting / batch files



Darcy
02-03-2004, 11:16 PM
Hi All,

I am wondering if anyone can point me in the right direction.

I am wondering if i can open webpages using a simple batch file.

I know i can open one by using the run cmd in windows.

Think i must be missing something, a switch etc in the batch files i have tried?

I just typed the URL into the batch file and that's it.

Am searching Windows Help for more info.

Where are all you scripting guru's?

Thanks in advance...

Darcy.

beama
03-03-2004, 07:17 AM
is this what you what Darcy

Batch file

@echo off
path=C:\Program Files\Internet Explorer
rem path will be different for example xp

start iexplore.exe http://pressf1.pcworld.co.nz

rem tested on 98se

beama
03-03-2004, 07:19 AM
copy and paste everything below "batch file"
also should have a cls as last line
Cheers

beama
03-03-2004, 08:15 AM
I ve been thinking about this and here may have better solution
create a new shortcut right click etc and when it asks for the path to the exercutable type in your url. Should have thought of this earlier as I use this method all the time

Darcy
03-03-2004, 01:12 PM
Scotty, your a genious...and just to think all those years we wasted together in the Army......Opp's hold on I'm still here! Doh!

Catch Ya.

Darcy
03-03-2004, 01:16 PM
PS. I was after the command line stuff rather than the desktop shortcut option, as one click on a batch file will now open all my IE windows [multiple] at once that i need rather than clicking on multiple shortcuts.

Thanks again Dude!

beama
03-03-2004, 11:15 PM
:D :D

ims
21-04-2005, 06:54 PM
After Scheduling both batch file and icon, i m getting error

Could not start,
plz reply to it.

gibler
21-04-2005, 08:40 PM
As an AutoIt 3 Script it would be:

Run("C:\Program Files\Internet Explorer\iexplore.exe http://www.google.co.nz")
Run("C:\Program Files\Internet Explorer\iexplore.exe http://www.apple.co.nz")


autoit 3 (http://www.autoitscript.com/autoit3/index.php)
It allows you to make nice executables and is free too.