如何设置开机启动程序

如何设置开机启动程序

(http://blog.csdn.net/wqf2)

       或许你要让自己的程序开机启动,或许你想要查出木马程序。那么本文将对你有帮助。

       开机启动程序可以通过下列方法来设置:
1. 注册表项:
HKEY_USERS/.DEFAULT/Software/Microsoft/Windows/CurrentVersion/Run
HKEY_USERS/.DEFAULT/Software/Microsoft/Windows/CurrentVersion/Runonce

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/RunOnce
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/RunOnceEx
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/RunServices

HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run
HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Runonce

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon键下的Userinit项

HKEY_CURRENT_USER/Software/Microsoft/Windows NT/CurrentVersion/Windows键下的Run项

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Windows键下的Run项

2. 批处理文件AUTOEXEC.BAT中(只在win9x下有用)

3. WIN.INI中(运行16位的应用程序)
[windows]
load=
run=

4. SYSTEM.INI中(运行16位的应用程序)
[boot]下

5. 把快捷方式放在以下目录:
[系统盘符]:/Documents and Settings/[用户名]/「开始」菜单/程序/启动
[系统盘符]:/Documents and Settings/All Users/「开始」菜单/程序/启动

6. 将应用程序制作成NT服务

你可能感兴趣的:(编程随想)