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. |
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
Open With from a command line
|
#5
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |