简体   繁体   English

如何将 exe 路径添加到 Windows 注册表,以在本机模式下执行?

[英]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:我相信您正在考虑位于此键中的BootExecute值:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

This is a REG_MULTI_SZ value, ie, it contains multiple strings.这是一个REG_MULTI_SZ值,即它包含多个字符串。 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 .这里autocheck是一个任意标签, autochk表示要运行的可执行文件是c:\\windows\\system32\\autochk.exe*是传递给autochk.exe的参数字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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