There are two system variables (program files and all user profile) that will need to be set based on which version of Windows is installed. I'm making some batch files to personalise my windows installations Welcome to Super User! Please note that Super User is not a script writing. Hi, Ich benötige eine Batchdatei die die verschiedene Version von Windows unterscheidet. Bis vor kurzem reichte mir das ganze für NT, 9x, ME. Sign up using Email and Password. WMIC requires an Admin to run it the first time. Microsoft Windows [Version 5. Just change the code to one line for each command, like goodgame de You should also read How do I ask a good question? LÖSUNG Biber schreibt am I just wanted to post a sample batch file that shows you how to detect the running version of Microsoft's Windows operating system in case you need to run specific commands based on which OS the batch file is run on.