- REM ; 判断系统
- ver | find "4.0" > nul && set TheOS=Windows 95 && goto exit
- ver | find "4.10"> nul && set TheOS=Windows 98 && goto exit
- ver | find "4.90"> nul && set TheOS=Windows me && goto exit
- ver | find "3.51"> nul && set TheOS=Windows NT35 && goto exit
- ver | find "5.0" > nul && set TheOS=Windows 2000 && goto exit
- ver | find "5.1" > nul && set TheOS=Windows XP && goto exit
- ver | find "5.2" > nul && set TheOS=Windows 2003 && goto exit
- ver | find "6.0" > nul && set TheOS=Windows Vista && goto exit
- ver | find "6.1" > nul && set TheOS=Windows 7 && goto Win7
- ver | find "6.2" > nul && set TheOS=Windows 8 && goto exit
- ver | find "6.3" > nul && set TheOS=Windows 8.1 && goto exit
- ver | find "10.0"> nul && set TheOS=Windows 10 && goto Win10
-
- :Win7
- if /i "%PROCESSOR_ARCHITECTURE%" equ "amd64" (
- set OsProcessor="X64位"
- ) else (
- if /i "PROCESSOR_ARCHITECTURE" equ "x86" (
- set OsProcessor="X86位"
- ) else (
- set OsProcessor="未知"
- )
- )
-
- if %OsProcessor%=="X64位" goto W7x64
- if %OsProcessor%=="X86位" goto W7x86
- if %OsProcessor%=="未知" exit
-
- :W7x64
- REM ; 关闭Windows外壳程序explorer
- taskkill /f /im explorer.exe
复制代码
|