Mail Archives: djgpp/2005/01/16/15:16:10
On Sun, 16 Jan 2005 10:41:08 GMT in comp.os.msdos.djgpp, "Mike C"
<My DOT address AT end DOT of DOT post> wrote:
>
>"Brian Inglis" <Brian DOT Inglis AT SystematicSW DOT Invalid> wrote in message
>news:h3dku051tn20t66jq51nu6bmig33s9mr37 AT 4ax DOT com...
>> On Sat, 15 Jan 2005 16:42:55 +0200 in comp.os.msdos.djgpp, "Eli Zaretskii"
><eliz AT gnu DOT org> wrote:
>>
>> >> From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
>> >> Date: Sat, 15 Jan 2005 14:10:35 GMT
>> >>
>> >> Go into Explorer/View/Options/File Types/New file type or pick file
>> >> type/Edit/Actions/open/Edit/Application/program.exe "%L"/OK/OK/OK
>> >> The "%L" argument passes a quoted long filename to program.exe.
>> >
>> >Thanks for the tip, but this only works for a specific program.exe,
>> >not for the entire system, right?
>>
>> Double/right clicking on a specific filetype only.
>>
>The parser that I wrote is for use at work, where everybody uses
>(currently!) Windoze 2000. I tried the procedure outlined by Brian Inglis
>above, but there is no Options selection under View. I can choose
>Tools/Folder Options, and there is a "File Types" tab there, but if I click
>"New", it wants to associate a file type with an execution program.
>
>The files parsed by my program are always of type ".log", but the
>association I like for these is Notepad. (I look at other log files also -
>the ubiquitous file extension! - so this system won't work for me. I have
>got as far as compiling Brian's suggestion, but I haven't tested it yet. The
>fact that it compiles is encouraging, though!
You can add a different action associated with a filetype and
displayed in the right-click context menu by adding a new action for
the selected filetype (log file) from the File Types tab.
You can then export/extract this action from the registry HKCR tree
under the file type description to allow others to import it, e.g.
REGEDIT4
[HKEY_CLASSES_ROOT\GzipFile]
@="Gzip File"
"EditFlags"=hex:00,00,00,00
"AlwaysShowExt"=""
[HKEY_CLASSES_ROOT\GzipFile\shell]
@=""
[HKEY_CLASSES_ROOT\GzipFile\shell\open]
@=""
"EditFlags"=hex:01,00,00,00
[HKEY_CLASSES_ROOT\GzipFile\shell\open\command]
@="gunzip.exe -l \"%L\" %1"
[HKEY_CLASSES_ROOT\GzipFile\shell\unzip]
"EditFlags"=hex:01,00,00,00
[HKEY_CLASSES_ROOT\GzipFile\shell\unzip\command]
@="gunzip.exe \"%L\" %1"
[HKEY_CLASSES_ROOT\GzipFile\DefaultIcon]
@="C:\\WINDOWS\\SYSTEM\\SHELL32.DLL,19"
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
- Raw text -