本帖最后由 pcl_test 于 2016-12-7 16:21 编辑
重启过机子依然无效,请问哪里有误?- @echo off
-
- set /p s=按任意键 清除...
- reg delete HKEY_CLASSES_ROOT\exefile\shell\Atest /f
- reg delete HKEY_CLASSES_ROOT\lnkfile\shell\Atest /f
- for %%i in (Atest.j Atest.k Atest.t Atest.c) do (
- reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\%%i /f
- )
- echo.
-
- if "%1"=="" (set alp=%windir%\a.exe) else (set alp=%1)
- set /p s=按任意键 %alp%绑定...
- for %%i in (HKEY_CLASSES_ROOT\exefile\shell\Atest HKEY_CLASSES_ROOT\lnkfile\shell\Atest) do (
- reg add %%i /f
- reg add %%i /v MUIVerb /t REG_SZ /d "Atest至" /f
- reg add %%i /v SubCommands /t REG_SZ /d "Atest.j;Atest.k;Atest.t;Atest.c" /f
- )
- set store=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\
- setlocal enabledelayedexpansion
- for %%i in (Atest.jrb11 Atest.khg12 Atest.ttw04 Atest.czg04) do (
- set "s=%%i" & set "s1=!s:~0,7!" & set "s2=!s:~7,2!" & set "s3=!s:~9,2!"
- reg add %store%!s1! /f
- reg add %store%!s1! /v MUIVerb /t REG_SZ /d "!s2!" /f
- reg add %store%!s1! /v icon /t REG_SZ /d "%alp%" /f
- reg add %store%!s1!\command /f
- reg add %store%!s1!\command /ve /t REG_SZ /d "cmd %1" /f
-
- )
- echo.
-
- pause
复制代码
|