File Type Settings

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

In editing File Types, e.g.URL:HyperText Transfer Protocol, for Open, I have
" "C:\Program Files\Internet Explorer\iexplore.exe" -nohome %1 ". What does
the trailing "%1"do? Thanks.
Larry
 
Larry said:
In editing File Types, e.g.URL:HyperText Transfer Protocol, for Open,
I have " "C:\Program Files\Internet Explorer\iexplore.exe" -nohome %1
". What does the trailing "%1"do? Thanks.
Larry

Classically, the %1 means "substitute here the 1st parameter on the command
line." Likewise for %2, %3, etc.
 
Thanks, Jon. Wouldn't the same page have opened without the trailing "%1"?
(It's not clear to me that it's needed there.) How should I have known what
the %1 meant? Is there a reference you can point me to that shows the syntax
for these file type settings? Thanks.
Larry
 
You can try this to observe the difference

start > run > iexplore -nohome

A blank page opens up, instead of a web page.

Can't think of a reference offhand, but someone else may be able to provide
it.
 
Thanks, HeyBub, and in this instance, what is the command line, and what is
the first parameter? Thanks.
Larry
 
Yeh, I figured out the -nohome part, but I don't see what the %1 is doing?
Thanks for your examples. Appreciate it.
Larry
 
Larry said:
In editing File Types, e.g.URL:HyperText Transfer Protocol, for Open, I have
" "C:\Program Files\Internet Explorer\iexplore.exe" -nohome %1 ". What does
the trailing "%1"do? Thanks.

It does what the programmer for that specific app. told it to do. Remove
it and find out exactly what it does.
 
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to the
program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the .url
file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
..stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default.stm

Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
 
Plato, I'd already done that. It didn't seem to make any difference, but I
noticed the %1 always came back into the string after I deleted it. That's
what prompted my question in the first place. What puts it back in the
string after I delete it?
Larry
 
Ahhhhh, now I'm beginning to catch on. Thanks for the excellent example
(except I don't think anything on the website you used would be understood
by an American user). :-)
Larry

Jon said:
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to the
program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the .url
file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
.stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default.stm

Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
Yeh, I figured out the -nohome part, but I don't see what the %1 is
doing? Thanks for your examples. Appreciate it.
Larry
 
... a field, by a strange coincidence, where substitutions are just as
important :-)

--
Jon

A word is enough to the wise

It may be of interest to note that "Larry"
Ahhhhh, now I'm beginning to catch on. Thanks for the excellent example
(except I don't think anything on the website you used would be understood
by an American user). :-)
Larry

Jon said:
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to
the program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the .url
file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
.stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default.stm

Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
Yeh, I figured out the -nohome part, but I don't see what the %1 is
doing? Thanks for your examples. Appreciate it.
Larry

You can try this to observe the difference

start > run > iexplore -nohome

A blank page opens up, instead of a web page.

Can't think of a reference offhand, but someone else may be able to
provide it.

--
Jon

Give us the tools and we will finish the job
--Winston Churchill

It cannot be denied that "Larry" <[email protected]>
clearly stated in Thanks, Jon. Wouldn't the same page have opened without the trailing
"%1"? (It's not clear to me that it's needed there.) How should I have
known what the %1 meant? Is there a reference you can point me to that
shows the syntax for these file type settings? Thanks.
Larry

The particular web page you are opening eg www.google.com is
substituted for the %1

Similar to doing something like
Start > Run > iexplore www.google.com

--
Jon

In theory, there is no difference between theory and practice. In
practice, there is a big difference.

You may well be aware that "Larry"
<[email protected]> had previously written in
In editing File Types, e.g.URL:HyperText Transfer Protocol, for
Open, I have " "C:\Program Files\Internet
Explorer\iexplore.exe" -nohome %1 ". What does the trailing "%1"do?
Thanks.
Larry
 
Jon, how do I open a URL file in notepad like you did in this message. I've
been trying for the last hour, and can't figure out how to do it. Thanks.
Larry

Jon said:
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to the
program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the .url
file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
.stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default.stm

Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
Yeh, I figured out the -nohome part, but I don't see what the %1 is
doing? Thanks for your examples. Appreciate it.
Larry
 
I have shortcuts to notepad and wordpad in my "sendto" menu

Start > Run > sendto (drag a shortcut to notepad or wordpad there)

Then you can right-click on a url and choose > Sendto > notepad

--
Jon

Accidents will happen

I may be mistaken, but I think "Larry" <[email protected]>
said something like the following in message
Jon, how do I open a URL file in notepad like you did in this message.
I've been trying for the last hour, and can't figure out how to do it.
Thanks.
Larry

Jon said:
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to
the program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the .url
file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
.stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default.stm

Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
Yeh, I figured out the -nohome part, but I don't see what the %1 is
doing? Thanks for your examples. Appreciate it.
Larry

You can try this to observe the difference

start > run > iexplore -nohome

A blank page opens up, instead of a web page.

Can't think of a reference offhand, but someone else may be able to
provide it.

--
Jon

Give us the tools and we will finish the job
--Winston Churchill

It cannot be denied that "Larry" <[email protected]>
clearly stated in Thanks, Jon. Wouldn't the same page have opened without the trailing
"%1"? (It's not clear to me that it's needed there.) How should I have
known what the %1 meant? Is there a reference you can point me to that
shows the syntax for these file type settings? Thanks.
Larry

The particular web page you are opening eg www.google.com is
substituted for the %1

Similar to doing something like
Start > Run > iexplore www.google.com

--
Jon

In theory, there is no difference between theory and practice. In
practice, there is a big difference.

You may well be aware that "Larry"
<[email protected]> had previously written in
In editing File Types, e.g.URL:HyperText Transfer Protocol, for
Open, I have " "C:\Program Files\Internet
Explorer\iexplore.exe" -nohome %1 ". What does the trailing "%1"do?
Thanks.
Larry
 
Well, even that turned out to be more difficult than it should have been,
but I finally got notepad added to my send to menu, and it works just great.
Thanks.
Larry

Jon said:
I have shortcuts to notepad and wordpad in my "sendto" menu

Start > Run > sendto (drag a shortcut to notepad or wordpad there)

Then you can right-click on a url and choose > Sendto > notepad

--
Jon

Accidents will happen

I may be mistaken, but I think "Larry"
Jon, how do I open a URL file in notepad like you did in this message.
I've been trying for the last hour, and can't figure out how to do it.
Thanks.
Larry

Jon said:
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to
the program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the
.url file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
.stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default.stm

Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
Yeh, I figured out the -nohome part, but I don't see what the %1 is
doing? Thanks for your examples. Appreciate it.
Larry

You can try this to observe the difference

start > run > iexplore -nohome

A blank page opens up, instead of a web page.

Can't think of a reference offhand, but someone else may be able to
provide it.

--
Jon

Give us the tools and we will finish the job
--Winston Churchill

It cannot be denied that "Larry" <[email protected]>
clearly stated in Thanks, Jon. Wouldn't the same page have opened without the trailing
"%1"? (It's not clear to me that it's needed there.) How should I
have known what the %1 meant? Is there a reference you can point me
to that shows the syntax for these file type settings? Thanks.
Larry

The particular web page you are opening eg www.google.com is
substituted for the %1

Similar to doing something like
Start > Run > iexplore www.google.com

--
Jon

In theory, there is no difference between theory and practice. In
practice, there is a big difference.

You may well be aware that "Larry"
<[email protected]> had previously written in
In editing File Types, e.g.URL:HyperText Transfer Protocol, for
Open, I have " "C:\Program Files\Internet
Explorer\iexplore.exe" -nohome %1 ". What does the trailing "%1"do?
Thanks.
Larry
 
Iexplore.exe has several switches. -nohome is just one. /nohome would be
the same, except IE inerpets that as a begining of an address and displays:
The page cannot be displayed instead of the blank page.

Startup switches for Internet Explorer
http://inetexplorer.mvps.org/answers/10.html

-new Launches the browser window in a new browsing process.
-remote Starts a remote instance of Internet Explorer on UNIX platforms
only.
-k Starts the browser in Kiosk or full-screen mode.
-nohome Starts Internet Explorer without its home page.
-embedding Starts the Web browser control (no home page is displayed).
-channelband Displays the channels folder.
-e Starts Internet Explorer Help on UNIX platforms only.
-v (also -version) Can be used to specify the version on UNIX platforms
only.
-e Launch Internet Explorer in Explorer mode (standard two pane view, My
Computer on left, Content on right)

Some of the above switches do not work with IE6.

Samples:
Opens IE to home page...
Start | Run | Type: iexplore | Click OK

Opens IE with no home page...
Start | Run | Type: iexplore /nohome | Click OK

Opens IE with no home page...
Start | Run | Type: iexplore -nohome | Click OK

Opens IE to home page and with the Folders pane open on the left...
Start | Run | Type: iexplore -e | Click OK

Opens IE in kiosk mode...
Start | Run | Type: iexplore -k | Click OK Ctrl + W to close it

Opens IE in kiosk mode open at C:\...
Start | Run | Type: iexplore -k c: | Click OK Ctrl + W to close it

Opens IE in kiosk mode at Microsft's home page...
Start | Run | Type: iexplore -k www.microsoft.com | Click OK
Ctrl + W to close it

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Larry said:
Ahhhhh, now I'm beginning to catch on. Thanks for the excellent example
(except I don't think anything on the website you used would be understood
by an American user). :-)
Larry

Jon said:
Ordinarily if you just run iexplore on its own you get your home page
opening up ( - the "-nohome" bit means you get a blank page instead )

To get anything else you have to supply what's called an "argument" to
the program when you run it. So when you click on a .url, the .url get
substitued for %1 and gets passed as an argument to iexplore.exe.
iexplore.exe then figures out what page to open up, by examining the .url
file.

If you open up a url file in notepad, it just contains text info, which
iexplore is able to process
eg here's the contents of a .url file

[DEFAULT]
BASEURL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/def
ault
.stm
[InternetShortcut]
URL=http://news.bbc.co.uk/sport1/hi/football/world_cup_2006/schedule/default
..stm
Modified=60BE8DD7D38FC601AB

--
Jon

The problem with troubleshooting is that trouble shoots back.

It may be of interest to note that "Larry"
 
Back
Top