Forum Home
Press F1
 
Thread ID: 43072 2004-03-02 10:16:00 Opening Webpages using Windows scripting / batch files Darcy (1040) Press F1
Post ID Timestamp Content User
219582 2004-03-02 10:16:00 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.
Darcy (1040)
219583 2004-03-02 18:17:00 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 (111)
219584 2004-03-02 18:19:00 copy and paste everything below "batch file"
also should have a cls as last line
Cheers
beama (111)
219585 2004-03-02 19:15:00 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
beama (111)
219586 2004-03-03 00:12:00 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 (1040)
219587 2004-03-03 00:16:00 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!
Darcy (1040)
219588 2004-03-03 10:15:00 :D :D beama (111)
219589 2005-04-21 06:54:00 After Scheduling both batch file and icon, i m getting error

Could not start,
plz reply to it.
ims (5337)
219590 2005-04-21 08:40:00 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 (www.autoitscript.com)
It allows you to make nice executables and is free too.
gibler (49)
1