How to make same bat file which would work for both Windows 7 and Windows XP

Hi,

I want to know how can we create the same bat file that would work for both XP and windows7. Is it possible to make same bat file for both O.S.??
2 answers Last reply
More about make file work windows windows
  1. You need conditional statements in your bat file. You can check the OS environment variable and act on that.
  2. ^+1 some of the commands are a little different so you have to figure out what OS, and then point the script to run those commands. I've seen scripts that do this, and I'm sure you can find some examples out there somewhere if you search for them.
Ask a new question

Read More

Configuration Windows 7 Windows XP