Category: Batch

Posted on: May 16, 2013 Posted by: admin Comments: 1

Logon Script depending on Windows Version

@echo off ver | find “6.1” > nul if %ERRORLEVEL% == 0 goto Win7 ver | find “5.1” > nul if %ERRORLEVEL% == 0 goto WinXP :Win7 echo Running Windows 7 Script goto exit :WinXP echo Running Windows XP Script goto exit :exit NT 5.1Windows XP XP 64-Bit Edition fr …