Tcl Services For Win95/Win98/WinME Windows 95/98/ME can provide a simple sort of service - that is a program operating in the background independant of user logins - by creating a registry key that is read during system startup. To create a Win98 service you should create a string value under the key HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\RunServices such as "MyService" = "...\wish.exe ...\script.tcl" The RunServices key is read during system startup and all the service programs are started before the user logs in. Unfortunately when the user logs out, the service will be stopped unless a call is made to the SCM (Service Configuration Manager) to register the process as a service at run time. The call to be made is found in kernel32.dll and is RegisterServiceProcess(DWORD processID, DWORD boolRegister) Once a process is registered it will not be terminated on user logout and will remain until system shutdown. This package provides this facility. The only command provided is registerservice ?-processid PID? true|false By default the current process is registered. Use true to register, false to unregister the process. See the attached tk_smtpd sample (requires Tcllib 1.2).