batch file question

25 replies [Last post]
Nights
Nights's picture
Offline
Apprentice
Joined: 2009/08/12

is there a way to make a bat file that will check which os is currently ran on the system then say "if xp" will run "X" commands? if not will check for the next os in the list if that one then will run "Z" commands? where the "commands" are a series of other bat, vbs scripts, reg key entries.

Photobucket