l

# Read the type name
set type [<B>registry get</B> HKEY_CLASSES_ROOT&#92;&#92;$ext {}]
# Work out where to look for the command
set path HKEY_CLASSES_ROOT&#92;&#92;$type&#92;&#92;Shell&#92;&#92;Open&#92;&#92;command
# Read the command!
set command [<B>registry get</B> $path {}]

puts &quot;$ext opens with $command&quot;</PRE>
<H3><A NAME="M24">KEYWORDS</A></H3>
<A href="../Keywords/R.html#registry">registry</A>
<div class="copy">Copyright &copy; 1997 Sun Microsystems, Inc.
<BR>Copyright &copy; 2002 Activ