|
注意本批处理是要放在绿色的emeditor根目录下运行的
- @ECHO OFF
- if not exist "%~dp0EmEditor.exe" goto err
- color 2f
- set pr1=HKEY_CLASSES_ROOT\*\shell\EmEditor
- set pr2=%pr1%\command
- reg add %pr1% /ve /d "EmEditor" /f
- reg add %pr2% /ve /d "%~dp0EmEditor.exe "%%1%"" /f
- start .\EmEditor.exe
- exit
- :err
- color 4a
- echo 错误没有找到EmEditor.exe 程序
复制代码
[ 本帖最后由 wanxibing 于 2012-1-3 22:49 编辑 ] |
|