联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
%comspec% /V:ON ::cdkey.txt文件中有4个cdkey set /A cd=%random%"%%"4 set /A b=%cd%+1 set /A a=0 for /f %%i in (D:\game\本地游戏\CS1.5中文硬盘版\CS1.5中文硬盘版\cdkey.txt) do set /A a=a+1 && if "!a!"=="%b%" set cdkey=%%i && goto EOF :EOF echo Windows Registry Editor Version 5.00 > c:\123.reg echo.>> c:\123.reg echo [HKEY_CURRENT_USER\Software\Valve\CounterStrike\Settings] >> c:\123.reg echo "Key"="%cdkey%" >> c:\123.reg
@echo off if "%1" == "" start %comspec% /V:ON /C %0 $ && goto eof ::cdkey.txt文件中有4个cdkey set /A cd=%random%"%%"4 set /A b=%cd%+1 set /A a=0 for /f %%i in (D:\game\本地游戏\CS1.5中文硬盘版\CS1.5中文硬盘版\cdkey.txt) do set /A a=a+1 && if "!a!"=="%b%" set cdkey=%%i &&goto chgkey :chgkey echo Windows Registry Editor Version 5.00 > c:\123.reg echo. >> c:\123.reg echo [HKEY_CURRENT_USER\Software\Valve\CounterStrike\Settings] >> c:\123.reg echo "Key"="%cdkey%" >> c:\123.reg regedit /s c:\123.reg
if "%1" == "" %comspec% /V:ON /C %0 cmdshell & goto :eof