Anyone out there? How would i write a dos batch script that would branch based on OS? windows xp vs vista, 7, 8?
Posted on 2013-12-07
I need to call an app that will be in:
and for vista, 7 and 8, it would be C:\Program Files (x86)
I am tempted to just include both lines - 1 would fail, and the other would work, but that's 'cheating'.
the dos commands to do this:
if os=xp goto xpcommand
C:\Program Files (x86)\.......
I just need that first line? any help?