简体   繁体   中英

How to add an exe path to the windows registry, to get executed on the native mode?

我必须在本机模式下运行一个 exe 文件,所以我想将它添加到注册表是我唯一的选择。请提供一些输入如何做到这一点?

I believe you're thinking of the BootExecute value, located in this key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

This is a REG_MULTI_SZ value, ie, it contains multiple strings. Each string contains an arbitrary identifier, the name of the executable to run, and the arguments to pass to the executable. For example, the default setting contains only one string:

autocheck autochk *

Here autocheck is an arbitrary label, autochk indicates that the executable to run is c:\\windows\\system32\\autochk.exe , and * is the argument string passed to autochk.exe .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM