Skip to content

Instantly share code, notes, and snippets.

@codethereforam
Created June 8, 2023 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codethereforam/a2e442c5d8ed967b09be42e3f35f578f to your computer and use it in GitHub Desktop.
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
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