Running at startup.
--- a/devel-windows.rst Tue Jan 26 09:18:33 2010 +0200
+++ b/devel-windows.rst Thu Jan 28 17:31:22 2010 +0200
@@ -18,3 +18,35 @@
* Sysinternals.
TODO
+
+* Running at startup.
+
+ HKCU\Software\Microsoft\Windows\CurrentVersion\Run
+ Launches a program automatically when a particular user logs
+ in. This key is used when you always want to launch a program
+ when a particular user is using a system.
+ HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
+ Launches a program the next time the user logs in and removes
+ its value entry from the registry. This key is typically used
+ by installation programs.
+ HKLM\Software\Microsoft\Windows\CurrentVersion\Run
+ Launches a program automatically at system startup. This key
+ is used when you always want to launch a program on a
+ particular system.
+ HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
+ Launches a program the next time the system starts and removes
+ its value entry from the registry. This key is typically used
+ by installation programs.
+ HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices
+ Launches a service (a standard NT service or a background
+ process) automatically at startup. An example of a service is
+ a Web server such as Microsoft Internet Information Server.
+ HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
+ Launches a service (a standard NT service or a background
+ process) the next time the system is started, then removes its
+ value entry from the registry.
+
+Values to registry on Windows XP can be added by:
+
+ cmd> reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v run.bat /t REG_SZ /d "path\to\run.bat"
+ cmd> reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run <-- see what done