Replies: 1 comment
-
@ECHO OFF
SETLOCAL
FOR /F "tokens=*" %%F IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName') DO SET "ProductName=%%F"
SET "ProductName=%ProductName:*REG_SZ =%"
FOR /F "tokens=* Eol= " %%F IN ("%ProductName%") DO SET "ProductName=%%F"
IF DEFINED ProgramFiles(x86) (SET OSType=x64) ELSE (SET OSType=x86)
FOR /F "tokens=*" %%F IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v DisplayVersion') DO SET "DisplayVersion=%%F"
SET "DisplayVersion=%DisplayVersion:*REG_SZ =%"
FOR /F "tokens=* Eol= " %%F IN ("%DisplayVersion%") DO SET "DisplayVersion=%%F"
SET UseExpresssion=Ver
FOR /F "tokens=*" %%F IN ('%UseExpresssion%') DO SET "OSBuild=%%F"
SET "OSBuild=%OSBuild:*10.0.=%"
FOR /F "tokens=1 delims=." %%A in ("%OSBuild%") DO SET /A V=%%A
SETLOCAL ENABLEDELAYEDEXPANSION
IF !V! GEQ 22000 SET "ProductName=%ProductName: 10 = 11 %"
SET "OSBuild=%OSBuild:~0,-1%"
ECHO %ProductName% %OSType% version %DisplayVersion% build %OSBuild%
SET "A=%WinDir%\dxgi.dll"
IF EXIST ("%A%") DO (
SET "A=%A:\=\\%"
FOR /F "tokens=2 delims==" %%B IN ('wmic datafile where "name='%A%'" get manufacturer /value 2^>^nul') DO FOR /F "delims=" %%C IN ("%%B") DO IF NOT "%%C"=="VALINET Solutions SRL" GOTO End
FOR /F "tokens=2 delims==" %%B IN ('wmic datafile where "name='%A%'" get version /value 2^>^nul') DO FOR /F "delims=" %%C IN ("%%B") DO ECHO ExplorerPatcher version %%C
)
:End
ENDLOCAL
PAUSE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Copy EP and OS versions from EP Properties Window
Beta Was this translation helpful? Give feedback.
All reactions