Created
June 8, 2023 02:38
-
-
Save codethereforam/a2e442c5d8ed967b09be42e3f35f578f to your computer and use it in GitHub Desktop.
a windows batch file: check windows version and then show a pop-up window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /F %%i in ('powershell -command "[System.Environment]::OSVersion.Version.Major"') do set VER=%%i | |
msg "%username%" %VER% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment