批处理脚本语言
1.批处理脚本语言例
@echo off set "trainpath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\KP.exe" for /f "tokens=2*" %%a in ('reg query "%trainpath%" 2^>nul') do set "urlpath=%%b" echo "%urlpath%" reg add HKEY_CLASSES_ROOT\training /v "URL Protocol" /t REG_SZ /f reg add HKEY_CLASSES_ROOT\training\DefaultIcon /t REG_SZ /d "%urlpath%" /f reg add HKEY_CLASSES_ROOT\training\shell /t REG_SZ /f reg add HKEY_CLASSES_ROOT\training\shell\open /t REG_SZ /f reg add HKEY_CLASSES_ROOT\training\shell\open\command /t REG_SZ /d "%urlpath%" /f pause