谁能解释一下呢?
@echo off
Title [******]
MODE con: COLS=50 LINES=6
color 8f
@echo.=================================================
@echo. 程序正在运行请稍等,请不要关闭
@echo. 程序大概运行为2到8分钟,结束后会出现提示信息
@echo.=================================================
:linkon
net stop dnscache >nul 2>nul
net start dnscache >nul 2>nul
rd "%temp%\rfw" /s/q >nul 2>nul
rd "%temp%\rav" /s/q >nul 2>nul
rd "%temp%\ris" /s/q >nul 2>nul
rd "%temp%\rscrash" /s/q >nul 2>nul
rd "%systemroot%\system32\config\systemprofile\Local Settings\Temp\rav" /s/q >nul 2>nul
rd "%systemroot%\system32\config\systemprofile\Local Settings\Temp\rfw" /s/q >nul 2>nul
rd "%systemroot%\system32\config\systemprofile\Local Settings\Temp\ris" /s/q >nul 2>nul
del "%systemroot%\temp\RAV\Download\*.*" /s/q >nul 2>nul
del "%systemroot%\temp\RFW\Download\*.*" /s/q >nul 2>nul
del "%systemroot%\temp\RIS\Download\*.*" /s/q >nul 2>nul
del "%systemroot%\temp\RFB\Download\*.*" /s/q >nul 2>nul
del "%systemroot%\temp\RSD\Download\*.*" /s/q >nul 2>nul
:start
REG QUERY HKLM\software\rising\ris /v installpath >nul 2>nul
if %errorlevel%==0 (set b=ris&goto :ifravris)
set b=rav
:ifravris
for /f "skip=4 tokens=3,4" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%b%" /v InstallLocation') do set temp1=%%i %%j>nul 2>nul
set a=%temp1%
if "%a%"=="" goto iptest
for /f "delims=" %%i in ("%a%") do set a=%%i
:Loop1
if " " == "%a:~-1,1%" (set "a=%a:~0,-1%" && goto loop1)
:ifravver
for /f "skip=4 tokens=3" %%j in ('reg query HKLM\SOFTWARE\rising\%b% /v Version') do set temp2=%%j>nul 2>nul
set avver=%temp2%
for /f "skip=2 tokens=3" %%j in ('reg query HKEY_CLASSES_ROOT\PROTOCOLS\Handler\javascript /v CLSID') do set temp3=%%j>nul 2>nul
set jvspt=%temp3%
:iptest
set f=%HOMEDRIVE%\Rs_Ulog\
md %f% >nul 2>nul
IF EXIST %f% (rd /s /q %f%)
IF NOT EXIST %f% (md "%f%\%b%%avver%")
md "%f%\%b%%avver%\cfg" >nul 2>nul
md "%f%\%b%%avver%\CopyRun" >nul 2>nul
md "%f%\dsr" >nul 2>nul
md "%f%\dsr\data" >nul 2>nul
md "%f%\evt" >nul 2>nul
md "%f%\sys" >nul 2>nul
md "%f%\net" >nul 2>nul
md "%f%\reg" >nul 2>nul
md "%f%\dump" >nul 2>nul
md "%f%\dump\mini" >nul 2>nul
systeminfo >>%f%\sys\sysinfo.txt
for /f "skip=2 tokens=3" %%z in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v BuildLab') do set wdsver=%%z
echo %wdsver% >%f%\sys\winver.txt
tasklist /m /fo table>%f%\sys\task1.txt
tasklist /svc>%f%\sys\task2.txt
tasklist /v>%f%\sys\task3.txt
regedit /e/s %f%\reg\uninstall.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" >nul 2>nul
regedit /e/s %f%\reg\install.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders\" >nul 2>nul
regedit /e/s %f%\reg\run.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\run\" >nul 2>nul
regedit /e/s %f%\reg\runonce.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\runonce\" >nul 2>nul
regedit /e/s %f%\reg\IPSec.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\IPSec\Policy\Local" >nul 2>nul
regedit /e/s %f%\reg\Safer.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Safer" >nul 2>nul
regedit /e/s %f%\reg\javascript.reg "HKEY_CLASSES_ROOT\PROTOCOLS\Handler\javascript" >nul 2>nul
regedit /e/s %f%\reg\javascript-clsid.reg "HKEY_CLASSES_ROOT\clsid\%jvspt%" >nul 2>nul
regedit /e/s %f%\reg\rising.reg "HKEY_LOCAL_MACHINE\SOFTWARE\rising" >nul 2>nul
ipconfig /all>%f%\net\dns.txt
ipconfig /displaydns>%f%\net\dns-cache.txt
arp -a>%f%\net\arp.txt
ping rsup08.rising.com.cn>%f%\net\rsup08.txt
ping rsup09.rising.com.cn>%f%\net\rsup09.txt
ping rsup10.rising.com.cn>%f%\net\rsup10.txt
ping z.rising.com.cn>%f%\net\z.txt
ping update.rising.com.cn>%f%\net\update.txt
ping download.rising.com.cn>%f%\net\download.txt
ping rsdownload.rising.com.cn>%f%\net\rsdownload.txt
nslookup download.rising.com.cn>%f%\net\nslookup.txt
tracert rsup10.rising.com.cn>%f%\net\10tracert.txt
wmic ENVIRONMENT>%f%\sys\environment.txt
wmic LOGICALDISK>%f%\sys\LOGICALDISK.txt
wmic DISKDRIVE>%f%\sys\disk.txt
wmic DESKTOPMONITOR where Status='ok' get ScreenHeight,ScreenWidth>%f%\sys\resolution.txt
wmic COMPUTERSYSTEM>%f%\sys\COMPUTERSYSTEM.txt
wmic process get caption,handle,commandline,executablepath>%f%\sys\process.txt
copy %systemroot%\system32\drivers\etc\*.* %f%\net\ >nul 2>nul
copy %systemroot%\system32\config\*.evt %f%\evt\ >nul 2>nul
copy "%programfiles%\rising\RSD\*.log" %f%\dsr\ >nul 2>nul
xcopy "%programfiles%\rising\RSD\Data\*.*" %f%\dsr\data /e/c/q >nul 2>nul
copy "%programfiles%\rising\RSD\Backup\RSD\RSSetup\Updater.exe.log" %f%\dsr\BackupRSDUp.exe.log >nul 2>nul
copy "%a%"\*.log %f%\%b%%avver% >nul 2>nul
copy "%a%"\*.db %f%\%b%%avver% >nul 2>nul
copy "%a%"\NetConfig.ini %f%\%b%%avver% >nul 2>nul
copy "%a%"\CopyRun\*.log %f%\%b%%avver%\CopyRun\ >nul 2>nul
copy "%a%"\CompsVer.inf %f%\%b%%avver% >nul 2>nul
copy "%a%"\update\CompsVer.inf %f%\%b%%avver%\upCompsVer.inf >nul 2>nul
copy "%ALLUSERSPROFILE%\Application Data\Rising\%b%\*.db" %f%\%b%%avver%\cfg\ >nul 2>nul
copy "%ALLUSERSPROFILE%\Application Data\Rising\%b%\*.cfg" %f%\%b%%avver%\cfg\ >nul 2>nul
copy "%SYSTEMROOT%\MEMORY.DMP" %f%\dump\ >nul 2>nul
copy "%SYSTEMROOT%\Minidump\*.dmp" %f%\dump\mini >nul 2>nul
:ifrfw
REG QUERY HKLM\software\rising\rfw /v installpath >nul 2>nul
if %errorlevel%==0 (set b=rfw&goto :ifrfw)
goto :exit
:ifrfw
for /f "skip=4 tokens=3,4" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%b%" /v InstallLocation') do set temp4=%%i %%j>nul 2>nul
set a=%temp4%
if "%a%"=="" goto exit
for /f "delims=" %%i in ("%a%") do set a=%%i
:Loop1
if " " == "%a:~-1,1%" (set "a=%a:~0,-1%" && goto loop1)
:ifrfwver
for /f "skip=4 tokens=3" %%j in ('reg query HKLM\SOFTWARE\rising\%b% /v Version') do set temp5=%%j>nul 2>nul
set avver=%temp5%
md "%f%\%b%%avver%"
md "%f%\%b%%avver%\cfg"
md "%f%\%b%%avver%\CopyRun"
copy "%a%"\*.log %f%\%b%%avver% >nul 2>nul
copy "%a%"\*.db %f%\%b%%avver% >nul 2>nul
copy "%a%"\CopyRun\*.log %f%\%b%%avver%\CopyRun\ >nul 2>nul
copy "%a%"\CompsVer.inf %f%\%b%%avver% >nul 2>nul
copy "%a%"\NetConfig.ini %f%\%b%%avver% >nul 2>nul
copy "%a%"\update\CompsVer.inf %f%\%b%%avver%\upCompsVer.inf >nul 2>nul
copy "%ALLUSERSPROFILE%\Application Data\Rising\%b%\*.db" %f%\%b%%avver%\cfg\ >nul 2>nul
copy "%ALLUSERSPROFILE%\Application Data\Rising\%b%\*.cfg" %f%\%b%%avver%\cfg\ >nul 2>nul
:exit
cls
MODE con: COLS=60 LINES=2
ECHO 程序运行结束,请重新启动计算机。如果问题依旧,请将系统盘根目录的《Rs_Ulog》文件夹(一般情况下在C盘根目录)压缩后提供给我们进行分析。
msg %username% 程序运行结束,请重新启动计算机。如果问题依旧,请将系统盘根目录的《Rs_Ulog》文件夹(一般情况下在C盘根目录)压缩后提供给我们进行分析。
exit |