X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Mike C" Newsgroups: comp.os.msdos.djgpp References: <41E81320 DOT 609028BD AT yahoo DOT com> <01c4faea$Blat.v2.2.2$57538880 AT zahav DOT net DOT il> <1j8iu0pablngce0n9qubka379nurk84hf7 AT 4ax DOT com> <01c4fb10$Blat.v2.2.2$a573e160 AT zahav DOT net DOT il> <8xrGd.393$cr3 DOT 149 AT newsfe4-gui DOT ntli DOT net> Subject: Re: intdos question Lines: 95 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: Date: Mon, 17 Jan 2005 19:55:32 GMT NNTP-Posting-Host: 62.253.115.224 X-Complaints-To: http://www.ntlworld.com/netreport X-Trace: newsfe1-win.ntli.net 1105991732 62.253.115.224 (Mon, 17 Jan 2005 19:55:32 GMT) NNTP-Posting-Date: Mon, 17 Jan 2005 19:55:32 GMT Organization: ntl Cablemodem News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Brian, You clearly know an awful lot more about Intel computers and their OS's than I do. I'm humbled by your attention to my question, but when it comes to playing with the registry, that's where I definitely chicken out. Thanks hugely for your advice, but I'm really more at home with DOS - and considering my original question, I'm not _that_ at home there either. So once again, thanks a million. I'll drop yopu a line and let you know when I eventually get it working. MikeC. "Brian Inglis" wrote in message news:rfhlu05c19ujeo0gin1mgsm5il1kgcbs9u AT 4ax DOT com... > On Sun, 16 Jan 2005 10:41:08 GMT in comp.os.msdos.djgpp, "Mike C" > wrote: > > > > >"Brian Inglis" 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" > > wrote: > >> > >> >> From: Brian Inglis > >> >> 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