A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Open With from a command line



 
 
Thread Tools Display Modes
  #1  
Old October 11th 08, 03:54 AM posted to microsoft.public.win98.gen_discussion
Franc Zabkar
External Usenet User
 
Posts: 1,702
Default Open With from a command line

In Explorer, highlighting a particular file and r-clicking it while
holding down the Shift key brings up a context menu with an "Open
with" option.

Is there any way I can automate this via a single command line?

I'm thinking of something like this ...

some_command.exe /option_1 ... /option_n %1

.... where %1 is the file I wish to open.

Would rundll32.exe or explorer.exe have appropriate command line
options?

- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.
  #2  
Old October 11th 08, 05:21 AM posted to microsoft.public.win98.gen_discussion
MEB[_2_]
External Usenet User
 
Posts: 1,626
Default Open With from a command line


"Franc Zabkar" wrote in message
...
| In Explorer, highlighting a particular file and r-clicking it while
| holding down the Shift key brings up a context menu with an "Open
| with" option.
|
| Is there any way I can automate this via a single command line?
|
| I'm thinking of something like this ...
|
| some_command.exe /option_1 ... /option_n %1
|
| ... where %1 is the file I wish to open.
|
| Would rundll32.exe or explorer.exe have appropriate command line
| options?
|
| - Franc Zabkar
| --
| Please remove one 'i' from my address when replying by email.

Well, couldn't that be accomplished by creating your specialty handling as
a Send To Item with "whatever your intended handler" and "options" would be?
It would seem to be rather difficult to attend to all the specific
variables that might be involved pursuant each "handler", though I suppose
you could make sub-context choices for each...

The registry COULD be modified to contain certain aspects related to each
particular file type, but gees that seems like a long way around just to
avoid a little typing... unless I'm missing something you're attempting to
address in this discussion.

--
MEB
http://peoplescounsel.org
a Peoples' counsel
_ _
~~


  #3  
Old October 11th 08, 06:42 AM posted to microsoft.public.win98.gen_discussion
Franc Zabkar
External Usenet User
 
Posts: 1,702
Default Open With from a command line

On Sat, 11 Oct 2008 00:21:20 -0400, "MEB" meb@not
put finger to keyboard and composed:


"Franc Zabkar" wrote in message
.. .
| In Explorer, highlighting a particular file and r-clicking it while
| holding down the Shift key brings up a context menu with an "Open
| with" option.
|
| Is there any way I can automate this via a single command line?
|
| I'm thinking of something like this ...
|
| some_command.exe /option_1 ... /option_n %1
|
| ... where %1 is the file I wish to open.
|
| Would rundll32.exe or explorer.exe have appropriate command line
| options?
|
| - Franc Zabkar

Well, couldn't that be accomplished by creating your specialty handling as
a Send To Item with "whatever your intended handler" and "options" would be?
It would seem to be rather difficult to attend to all the specific
variables that might be involved pursuant each "handler", though I suppose
you could make sub-context choices for each...

The registry COULD be modified to contain certain aspects related to each
particular file type, but gees that seems like a long way around just to
avoid a little typing... unless I'm missing something you're attempting to
address in this discussion.


What I'm trying to do is to give myself the option of sending a URL to
one of several browsers. For example, in my newsreader, Agent, when I
click on a HTTP link, it launches my default browser, Opera. To send
the link to a different browser, I need to launch that browser and
then cut and paste the URL into its address bar. This is tedious.

What I want to do is to make the above command line my default
application for handling .HTML URLs. Then I can use it to redirect the
URL to any browser I choose.

- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.
  #4  
Old October 11th 08, 08:21 AM posted to microsoft.public.win98.gen_discussion
Jeff Richards
External Usenet User
 
Posts: 1,526
Default Open With from a command line

Why not just write a little VB application? It's only a few lines of code.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Franc Zabkar" wrote in message
...
On Sat, 11 Oct 2008 00:21:20 -0400, "MEB" meb@not
put finger to keyboard and composed:


"Franc Zabkar" wrote in message
. ..
| In Explorer, highlighting a particular file and r-clicking it while
| holding down the Shift key brings up a context menu with an "Open
| with" option.
|
| Is there any way I can automate this via a single command line?
|
| I'm thinking of something like this ...
|
| some_command.exe /option_1 ... /option_n %1
|
| ... where %1 is the file I wish to open.
|
| Would rundll32.exe or explorer.exe have appropriate command line
| options?
|
| - Franc Zabkar

Well, couldn't that be accomplished by creating your specialty handling
as
a Send To Item with "whatever your intended handler" and "options" would
be?
It would seem to be rather difficult to attend to all the specific
variables that might be involved pursuant each "handler", though I suppose
you could make sub-context choices for each...

The registry COULD be modified to contain certain aspects related to each
particular file type, but gees that seems like a long way around just to
avoid a little typing... unless I'm missing something you're attempting to
address in this discussion.


What I'm trying to do is to give myself the option of sending a URL to
one of several browsers. For example, in my newsreader, Agent, when I
click on a HTTP link, it launches my default browser, Opera. To send
the link to a different browser, I need to launch that browser and
then cut and paste the URL into its address bar. This is tedious.

What I want to do is to make the above command line my default
application for handling .HTML URLs. Then I can use it to redirect the
URL to any browser I choose.

- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.



  #5  
Old October 11th 08, 09:22 AM posted to microsoft.public.win98.gen_discussion
Alan Edwards
External Usenet User
 
Posts: 329
Default Open With from a command line

Jeff may have the best idea.
I haven't used such an old version of Agent as yours for a while, so I
doubt it has an Option to use more than one program to open HTML
files. I don't even see my Agent has that option.

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.com/index.htm




On Sat, 11 Oct 2008 16:42:06 +1100, in
microsoft.public.win98.gen_discussion, Franc Zabkar
wrote:


What I'm trying to do is to give myself the option of sending a URL to
one of several browsers. For example, in my newsreader, Agent, when I
click on a HTTP link, it launches my default browser, Opera. To send
the link to a different browser, I need to launch that browser and
then cut and paste the URL into its address bar. This is tedious.

What I want to do is to make the above command line my default
application for handling .HTML URLs. Then I can use it to redirect the
URL to any browser I choose.

- Franc Zabkar

  #6  
Old October 11th 08, 11:03 AM posted to microsoft.public.win98.gen_discussion
dadiOH[_3_]
External Usenet User
 
Posts: 263
Default Open With from a command line

Franc Zabkar wrote:

What I'm trying to do is to give myself the option of sending a URL to
one of several browsers. For example, in my newsreader, Agent, when I
click on a HTTP link, it launches my default browser, Opera. To send
the link to a different browser, I need to launch that browser and
then cut and paste the URL into its address bar. This is tedious.

What I want to do is to make the above command line my default
application for handling .HTML URLs. Then I can use it to redirect the
URL to any browser I choose.

- Franc Zabkar


Maybe not what you want but you could use FastExplorer to create a context
menu for htm, .html, .url, etc. and put whatever apps you wish on that
context menu. If you didn't want to keep FE, an examination of what it did
in creating the menu/associations might lead you to your solution. Also,
the author - Alex Yakovlev - has always been helpful and responsive to
me...perhaps he can help you.

http://thesoftpro.tripod.com/downloads/index.htm

--

dadiOH
____________________________

dadiOH's dandies v3.06...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico



  #7  
Old October 11th 08, 01:28 PM posted to microsoft.public.win98.gen_discussion
Jeff Richards
External Usenet User
 
Posts: 1,526
Default Open With from a command line

If I understand the problem, a context menu won't help as the connection is
occurring within the application (Agent, in this case) and unless that
application recognises and handles context menu items, no amount of fiddling
with the registry is going to accomplish what OP wants. Agent is simply
requesting the OS to do the equivalent of a double-click in Explorer. To
allow a selection it would have to request the OS to do the equivalent of a
right-click, and that would require an internal change within Agent (if it
can be done at all).
--
Jeff Richards
MS MVP (Windows - Shell/User)
"dadiOH" wrote in message
...
Franc Zabkar wrote:

What I'm trying to do is to give myself the option of sending a URL to
one of several browsers. For example, in my newsreader, Agent, when I
click on a HTTP link, it launches my default browser, Opera. To send
the link to a different browser, I need to launch that browser and
then cut and paste the URL into its address bar. This is tedious.

What I want to do is to make the above command line my default
application for handling .HTML URLs. Then I can use it to redirect the
URL to any browser I choose.

- Franc Zabkar


Maybe not what you want but you could use FastExplorer to create a context
menu for htm, .html, .url, etc. and put whatever apps you wish on that
context menu. If you didn't want to keep FE, an examination of what it
did in creating the menu/associations might lead you to your solution.
Also, the author - Alex Yakovlev - has always been helpful and responsive
to me...perhaps he can help you.

http://thesoftpro.tripod.com/downloads/index.htm

--

dadiOH
____________________________

dadiOH's dandies v3.06...
...a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico





  #8  
Old October 11th 08, 01:50 PM posted to microsoft.public.win98.gen_discussion
Bill Blanton
External Usenet User
 
Posts: 441
Default Open With from a command line

"Franc Zabkar" wrote in message ...
In Explorer, highlighting a particular file and r-clicking it while
holding down the Shift key brings up a context menu with an "Open
with" option.

Is there any way I can automate this via a single command line?

I'm thinking of something like this ...

some_command.exe /option_1 ... /option_n %1

... where %1 is the file I wish to open.

Would rundll32.exe or explorer.exe have appropriate command line
options?


This works.
rundll32.exe shell32,OpenAs_RunDLL c:\config.sys

I haven't tried, but I assume this would work to pass the variable;
rundll32.exe shell32,OpenAs_RunDLL %L

%L attempts to pass the long name, %1 is the short 8.3 name.



  #9  
Old October 11th 08, 02:00 PM posted to microsoft.public.win98.gen_discussion
dadiOH[_3_]
External Usenet User
 
Posts: 263
Default Open With from a command line

I can't say about Agent but in OE I get a context menu when I right click a
link. One would think that one would be spewed forth with Agent too

dadiOH


Jeff Richards wrote:
If I understand the problem, a context menu won't help as the
connection is occurring within the application (Agent, in this case)
and unless that application recognises and handles context menu
items, no amount of fiddling with the registry is going to accomplish
what OP wants. Agent is simply requesting the OS to do the
equivalent of a double-click in Explorer. To allow a selection it
would have to request the OS to do the equivalent of a right-click,
and that would require an internal change within Agent (if it can be
done at all).
Franc Zabkar wrote:

What I'm trying to do is to give myself the option of sending a URL
to one of several browsers. For example, in my newsreader, Agent,
when I click on a HTTP link, it launches my default browser, Opera.
To send the link to a different browser, I need to launch that
browser and then cut and paste the URL into its address bar. This
is tedious. What I want to do is to make the above command line my
default
application for handling .HTML URLs. Then I can use it to redirect
the URL to any browser I choose.

- Franc Zabkar


Maybe not what you want but you could use FastExplorer to create a
context menu for htm, .html, .url, etc. and put whatever apps you
wish on that context menu. If you didn't want to keep FE, an
examination of what it did in creating the menu/associations might
lead you to your solution. Also, the author - Alex Yakovlev - has
always been helpful and responsive to me...perhaps he can help you.

http://thesoftpro.tripod.com/downloads/index.htm

--

dadiOH
____________________________

dadiOH's dandies v3.06...
...a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico




  #10  
Old October 11th 08, 03:03 PM posted to microsoft.public.win98.gen_discussion
Alan Edwards
External Usenet User
 
Posts: 329
Default Open With from a command line

One does get a context menu in Agent but I see no way of configuring
it as Franc wants, though the Agent newsgroup would be a better place
to ask.
Newsgroup: alt.usenet.offline-reader.forte-agent

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.com/index.htm



On Sat, 11 Oct 2008 09:00:47 -0400, in
microsoft.public.win98.gen_discussion, "dadiOH"
wrote:

I can't say about Agent but in OE I get a context menu when I right click a
link. One would think that one would be spewed forth with Agent too

dadiOH


Jeff Richards wrote:
If I understand the problem, a context menu won't help as the
connection is occurring within the application (Agent, in this case)
and unless that application recognises and handles context menu
items, no amount of fiddling with the registry is going to accomplish
what OP wants. Agent is simply requesting the OS to do the
equivalent of a double-click in Explorer. To allow a selection it
would have to request the OS to do the equivalent of a right-click,
and that would require an internal change within Agent (if it can be
done at all).
Franc Zabkar wrote:

What I'm trying to do is to give myself the option of sending a URL
to one of several browsers. For example, in my newsreader, Agent,
when I click on a HTTP link, it launches my default browser, Opera.
To send the link to a different browser, I need to launch that
browser and then cut and paste the URL into its address bar. This
is tedious. What I want to do is to make the above command line my
default
application for handling .HTML URLs. Then I can use it to redirect
the URL to any browser I choose.

- Franc Zabkar

Maybe not what you want but you could use FastExplorer to create a
context menu for htm, .html, .url, etc. and put whatever apps you
wish on that context menu. If you didn't want to keep FE, an
examination of what it did in creating the menu/associations might
lead you to your solution. Also, the author - Alex Yakovlev - has
always been helpful and responsive to me...perhaps he can help you.

http://thesoftpro.tripod.com/downloads/index.htm

--

dadiOH
____________________________

dadiOH's dandies v3.06...
...a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need command line lpr for Win98 Jim Seymour Printing 3 April 1st 08 09:43 PM
DUN command line establish connection MidnightTwink General 3 April 9th 06 11:07 PM
Starting Windows from a DOS Command Line DaleB General 2 August 1st 05 01:27 PM
Command line switch Me General 2 March 12th 05 06:09 PM
Command Line Switch Scott General 3 January 12th 05 12:46 AM


All times are GMT +1. The time now is 07:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.