I'm making some batch files to personalise my windows installations faster, but I need my batch to take a road depending on which Windows version it's running on.
If i could get the windows version into a variable i could build a conditional to take the right path.
I've been looking for an answer on google and even here but... the answers i've got dont meet what i need.
could someone help me please?...
@echo off setlocal for /f "tokens=4-7 delims=. " %%i in ('ver') do set VERSION=%%i.%%j if "%version%" == "10.0" echo Windows 10 pause endlocal pause– Brlesskoin Apr 11 '16 at 13:14