由于这个链接提示,我想更换Notepad.exe与Notepad2.exe使用" 图像文件执行选项 "通过运行该命令功能
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe"
/v "Debugger" /t REG_SZ /d "\"c:\windows\Notepad2.exe\" /z" /f
Run Code Online (Sandbox Code Playgroud)
但是当我运行记事本时,它仍会打开文件
C:\ WINDOWS\NOTEPAD.EXE
默认情况下,在notepad2.exe中作为文本文件.
有没有办法避免这种情况?
我知道使用这个技术Notepad.exe将作为传递给Notepad2.exe的第一个参数.但我不知道如何避免这种情况:(
registry ×1