Site icon Forum Sospc.fr

Connaître sa version de Windows en “patch”

Hello Je vois souvent la question: Comment connaitre sa version de Windows ? Il y a plusieurs façons, mais la plus rapide c'est de se faire un fichier "patch", ou il suffit juste de cliquer dessus. Pour ce, vous ouvrez votre bloc note, et vous y copier et coller ce texte:
Puis vous l'enregistrer sous, en lui donnant un nom comme par exemple: Version Win.bat @echo off cls set vwin= &set archi= &set sp= color 0A title bill morron ver | find /i "version 10.0.10586" > nul if %errorlevel%==0 set vwin=Windows 10 1511 10.0.586 ver | find /i "version 10.0.10240" > nul if %errorlevel%==0 set vwin=Windows 10 RTM 10.0.10240 ver | find /i "version 10.0.9926" > nul if %errorlevel%==0 set vwin=Windows 10 Technical Preview 4 10.0.9926 ver | find /i "version 6.4.9879" > nul if %errorlevel%==0 set vwin=Windows 10 Technical Preview 3 6.4.9879 ver | find /i "version 6.4.9860" > nul if %errorlevel%==0 set vwin=Windows 10 Technical Preview 2 6.4.9860 ver | find /i "version 6.4.9841" > nul if %errorlevel%==0 set vwin=Windows 10 Technical Preview 1 6.4.9841 ver | find /i "version 6.3.9600" > nul if %errorlevel%==0 set vwin=Windows 8.1 ver | find /i "version 6.2." > nul if %errorlevel%==0 set vwin=Windows 8 ver | find /i "version 6.1." > nul if %errorlevel%==0 set vwin=Windows 7 ver | find /i "version 6.0." > nul if %errorlevel%==0 set vwin=Windows Vista ver | find /i "version 5.1." > nul if %errorlevel%==0 set vwin=Windows XP ver | find /i "version 5.2." > nul if %errorlevel%==0 set vwin=Windows 2003 ver | find /i "Windows 2000" > nul if %errorlevel%==0 set vwin=Windows 2000 ver | find /i "Windows NT" > nul if %errorlevel%==0 set vwin=Windows NT ver | find /i ">Windows ME" > nul if %errorlevel%==0 set vwin=Windows ME ver | find /i "Windows 98" > nul if %errorlevel%==0 set vwin=Windows 98 ver | find /i "Windows 95" > nul if %errorlevel%==0 set vwin=Windows 95 if %PROCESSOR_ARCHITECTURE%==AMD64 (set archi=64bits) if %PROCESSOR_ARCHITECTURE%==x86 (set archi=32bits) if defined PROCESSOR_ARCHITEW6432 (set archi=Processus 32 bits sur une plateforme 64 bits) reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDversion >NUL 2>NUL || goto aftertest for /f "delims=: tokens=*" %%X in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDversion ^| find "Service Pack 3"') do set SP=3 for /f "delims=: tokens=*" %%X in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDversion ^| find "Service Pack 2"') do set SP=2 for /f "delims=: tokens=*" %%X in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDversion ^| find "Service Pack 1"') do set SP=1 :aftertest if "%sp%"=="" ( set typeOS=%vwin% %archi% sans service pack goto end ) set typeOS=%vwin% Service Pack %sp% %archi% :end echo %typeOS% for /f "tokens=*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| findstr "ProductName"') do set "version=%%a" echo Version : %version% for /f "tokens=*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| findstr "BuildLabEx"') do set "version=%%a" echo Version : %version% pause winver exit Voilà, ça donne ça: [URL=http://www.hostingpics.net/viewer.php?id=838327screenshot20151210195118.jpg][IMG]http://img15.hostingpics.net/pics/838327screenshot20151210195118.jpg[/IMG][/URL]
Quitter la version mobile