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

StackOverflow https://stackoverflow.com/questions/23151537

  •  05-07-2023
  •  | 
  •  

سؤال

I have to run an exe file in the native mode so i guess adding it to the registry is the only option i am having.Please give some input how this can be done?

هل كانت مفيدة؟

المحلول

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, i.e., 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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top