Find out OS version in batch file...
Posted on 2012-04-13
Hello everyone, I need to create a batch file that will copy (from a location on C) and replace a single file. However the problem I have is that based on the OS the user is running the file could be in a different location on the hard drive (XP vs Win 7).
Can some tell me how I would check to see what OS they are running in a batch file and then based on that OS go to the correct folder location?
XP: C:\Documents and Settings\Username\Application Data\Meeting Center\Invitation Cache
Win 7: C:\Users\Username\App Data\Roaming\Meeting Center\ Invitation Cache
Thanks in advance for your help!!