本帖最后由 ANSL 于 2022-12-10 10:18 编辑
回复 1# 5209520
存为reg文件
经测试,成功!- Windows Registry Editor Version 5.00
- [HKEY_CLASSES_ROOT\*\shell\runas]
- @="添加菜单"
- "NoWorkingDirectory"=""
- [HKEY_CLASSES_ROOT\*\shell\runas\command]
- @="cmd.exe /c 批处理路径"
复制代码 把bat文件改成,存为ANSI- @ echo off
- %1 mshta vbscript:CreateObject(“Shell.Application”).ShellExecute(“cmd.exe”,"/c %~s0 ::","",“runas”,1)(window.close)&&exit
- cd C:\AsialocalSetup
- Asialocalmainreg.exe --install
复制代码
|