X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.177.20 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: intdos question Organization: Systematic Software Message-ID: 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> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 71 Date: Sun, 16 Jan 2005 20:02:40 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw3no 1105905760 24.71.223.147 (Sun, 16 Jan 2005 13:02:40 MST) NNTP-Posting-Date: Sun, 16 Jan 2005 13:02:40 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie 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