aries215 当前离线
三级士官
@echo off Setlocal EnableDelayedExpansion set "SourceDrive=E:" ::::::: for /d /r "!SourceDrive!\Windows\servicing\Version\" %%i in (*) do (set "vn=%%~ni") if "!vn:~,3!" equ "6.3" set osver=8 if "!vn:~,2!" equ "10" set osver=10 echo !osver! pause复制代码
qixiaobin0715 当前在线
大校
for /f "tokens=!n!" ...复制代码
TOP
aloha20200628 当前离线
上尉
Five66 当前离线
77七 当前离线
中校
if exist "F:\Windows\SysWOW64\" ( echo copy /v /y "Sys\disk!osver!64.sys" "F:\Windows\System32\drivers\disk.sys" ) else ( echo copy /v /y "Sys\disk!osver!32.sys" "F:\Windows\System32\drivers\disk.sys" )复制代码