Click to See Complete Forum and Search --> : Windows XP batch file help


tonydotigr
August 17th, 2006, 07:53 AM
Hi all,

I'm trying to get a back file to open multiple web addresses using start /iexplore.exe . My problem revolves around trying to open pages with an & in it.

Example:
start /iexplore.exe http://www.thisisatest.com/blah&blah/test

What is will actually open is:
start /iexplore.exe http://www.thisisatest.com/blah

The & kills the link and it makes it end at the &. Any ideas?

Thanks!

Gabriel
August 17th, 2006, 08:24 AM
Hello tonydotigr and welcome to WD forums,
Try to Put " sign in the start and the end of the URL.
like:
start /iexplore.exe "http://www.thisisatest.com/blah&blah/test"

Cheers,
Gabriel

tonydotigr
August 17th, 2006, 10:10 AM
I tried that and I get the same results.

Thanks for the welcome!

tonydotigr
August 17th, 2006, 10:16 AM
Here's what its doing.

It adds this to the head of address resulting in page can not be displayed.

http://%22http//

tonydotigr
August 18th, 2006, 09:14 AM
Thanks for the help. I ended up getting it to work. I just removed the "http://" from the address and used quotations as you mentioned, and tah-dah it worked.

One should not underestimate the power of a DOS batch file. ;-)

Gabriel
August 20th, 2006, 03:05 AM
One should not underestimate the power of a DOS batch file. ;-)
Batch files are not just for DOS - actually you are not using dos.
You are using command interpeter that is buikt in into the system.
Batch file is a kind of Script, almost every OS has the ability to script.

But yes - I sure miss the good old DOS days

Gabriel