Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a webpage in a new window 2

Status
Not open for further replies.

DayLaborer

Programmer
Jan 3, 2006
347
US
I have a "fancy" keyboard with programmable buttons on it. On of them is a "mail" button. I want it to go to Gmail. The keyboard comes with a program to customize such buttons. I can set this button to run a program with a path (C:/Program Files/NameOfAppToRunHere.exe) or a website ( When I program the button with it always "hijacks" an existing Internet Explorer window. How can I adjust the URL so that it always opens it in a new window?

Thanks!
Eliezer
 
you need to make the desktop shortcut point to IE .. not directly to the website... something like this

"C:\Program Files\Internet Explorer\iexplore.exe" -new
 
Program the button to open C:\Program Files\Internet Explorer\iexplore.exe and then add at the end the website to open.


Code:
C:\Program Files\Internet Explorer\iexplore.exe [URL unfurl="true"]www.gmail.com[/URL]

That should open up a new window, and load gmail in it.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
There's something wrong with the syntax. This program needs to put quotes around the entire command. How do I "escape-out" the quotes so that it can have its quotes around the whole thing?

Thanks!
 
I added quotes around the middle line of your code above and saved it as you suggested. When I ran it, I got this:[tt]
C:\Program Files\Internet Explorer\iexplore.exe is not recognized as an internal or external command, operable program or batch file.[/tt]
 
Try auger282's idea.

"That time in Seattle... was a nightmare. I came out of it dead broke, without a house, without anything except a girlfriend and a knowledge of UNIX."
"Well, that's something," Avi says. "Normally those two are mutually exclusive."
-- Neal Stephenson, "Cryptonomicon"
 
I tried Auger's idea but, as I asked before:
How do I "escape-out" the quotes so that it can have its quotes around the whole thing?
I like that idea better than running a command file... just couldn't get it to work.

Please advise...

Thanks,
Eliezer
 
You could also make a bat file with the commands in it and create a short cut on your desktop. like this:
from a dos window
notepad gmail.bat
then put the command
"C:\Program Files\Internet Explorer\iexplore.exe" -new
with "in front and back save and create the shortcut on your desktop.
 
What have you got ticked in the Reuse Windows for Launching Shortcuts setting on the Advanced tab in the Internet Options dialog box? Try unchecking it and see what happens.
 
Actually, Linney's idea worked! [blush]

Thanks much, all!
Eliezer
 
Actually, one more question :) ...

I successfully used Linney's idea. I have the button executing this:
[tt]"[/tt]

Is there a way of having the IE window open in a minimized state?


Thanks again,
Eliezer
 
Copy/paste into notepad and File, Save as... \windows\system32\ie_key.cmd

@echo off
start /minimized C:\Program Files\Internet Explorer\iexplore.exe Exit

Use ie_key.cmd as the object of the key command.
 
As I mentioned in detail earlier, that is a .CMD file which should be the object in your key definition. Follow my earlier instruction to create the .CMD file. Copy the file to some path'ed folder, such as C:\Windows

Then create the key shortcut: c:\windows\whatever_you_named_it.cmd

 
Yes, I understand that. Is there any way to do it without running such a file, but rather having it execute one line directly?
 
The keyboard comes with a program to customize such buttons. I can set this button to run a program with a path (C:/Program Files/NameOfAppToRunHere.exe)

For the "path" enter exactly:
CMD start /minimized C:\Program Files\Internet Explorer\iexplore.exe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top