Subject: Re: Getting at Windows Associations - DN [1]
"Bill Schongar" <bills@lcdmultimedia.com> - 08 Oct 1999 - comp.lang.tcl
Robert Searle wrote:
>Has anybody got a tcl fragment that shows how to get at the names of the
>executables for open/edit associations under Win 95/NT ?
Using a .tcl extension as an example..
package require registry
set foo [registry get HKEY_CLASSES_ROOT\\.tcl {}]
set editCmd [registry get HKEY_CLASSES_ROOT\\$foo\\shell\\edit\\command {}]
set openCmd [registry get HKEY_CLASSES_ROOT\\$foo\\shell\\open\\command {}]
Seems to work fine.. there may be a situation that requires more, but
since this is all spur of the moment anyway..
Hope that helps..
-Bill
Last modified
1999-10-19
1999-10-19
(195.108.246.51)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
