@echo off

set "wish=\Storage Card\Tcl\bin\wish84.exe"
set reg=C:\temp\ce\wince\cereg.exe

rem not necessary for properly installed Tcl
rem set libdir=/Tcl/lib
rem %reg% -k "HKLM\Environment" -n "TCL_LIBRARY" -v "%libdir%/tcl8.4"
rem %reg% -k "HKLM\Environment" -n "TK_LIBRARY" -v "%libdir%/tk8.4"

%reg% -k "HKCR\.tcl" -n "" -v "tclfile"
%reg% -k "HKCR\tclfile" -n "" -v "TclTk Script"
%reg% -k "HKCR\tclfile\DefaultIcon" -n "" -v "%wish%,0"
%reg% -k "HKCR\tclfile\Shell\open\command" -n "" -v """"%wish%""" ""%%1"""


%reg% -k HKLM\Environment -n COMPUTERNAME -v toshiba
%reg% -k HKLM\Environment -n HOME         -v \Temp\hobbs
%reg% -k HKLM\Environment -n PATH         -v "\Storage Card\Tcl\bin"
%reg% -k HKLM\Environment -n TEMP         -v \Temp
%reg% -k HKLM\Environment -n TMP          -v \Temp
%reg% -k HKLM\Environment -n TMPDIR       -v \Temp
%reg% -k HKLM\Environment -n USERNAME     -v hobbs
%reg% -k HKLM\Environment -n CELIBSTDLOGDIR -v \Temp
