在桌面新建nushell.reg文件,里面写如下代码:- Windows Registry Editor Version 5.00
- [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenNushellHere]
- "ShowBasedOnVelocityId"=dword:00639bc8
- [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenNushellHere\command]
- @="O:\\Apps\\nushell-0.34.0\\nu.exe"
- ;注意这个是注释,这里Console\后面的_其实就是\路径分隔符【所以要右键打开的可执行程序的文件路径上最好本身不要带有_】
- [HKEY_CURRENT_USER\Console\O:_Apps_nushell-0.34.0_nu.exe]
- "CodePage"=dword:0000fde9
复制代码
而以管理员新建则是通过:- Windows Registry Editor Version 5.00
- [-HKEY_CLASSES_ROOT\Directory\shell\runas]
- [HKEY_CLASSES_ROOT\Directory\shell\runas]
- @="Open nushell window here as Administrator"
- "HasLUAShield"=""
- [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
- @="O:\\Apps\\nushell-0.34.0\\nu.exe"
- [-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
- [HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
- @="Open nushell window here as Administrator"
- "HasLUAShield"=""
- [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
- @="O:\\Apps\\nushell-0.34.0\\nu.exe"
- [-HKEY_CLASSES_ROOT\Drive\shell\runas]
- [HKEY_CLASSES_ROOT\Drive\shell\runas]
- @="Open nushell window here as Administrator"
- "HasLUAShield"=""
- [HKEY_CLASSES_ROOT\Drive\shell\runas\command]
- @="O:\\Apps\\nushell-0.34.0\\nu.exe"
- [-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
- [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
- "HasLUAShield"=""
- @="Open nushell window here as Administrator"
- [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
- ;注意这个是注释,这里Console\后面的_其实就是\路径分隔符【所以要右键打开的可执行程序的文件路径上最好本身不要带有_】
- [HKEY_CURRENT_USER\Console\O:_Apps_nushell-0.34.0_nu.exe]
- "CodePage"=dword:0000fde9
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! |