How to make same bat file which would work for both Windows 7 and Windows XP Tags: Configuration Windows 7 Windows XP Last response: November 20, 2012 1:23 PM in Windows 7 Share Supriya Singh November 20, 2012 3:53:54 AM 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.?? More about : make bat file work windows windows Hawkeye22 a c 228 $ Windows 7 November 20, 2012 1:04:07 PM You need conditional statements in your bat file. You can check the OS environment variable and act on that. m 0 l ss202sl a b $ Windows 7 November 20, 2012 1:23:19 PM ^+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. m 0 l Can't find your answer ? Ask ! Publish Related resources How do i make windows xp look and work like windows 7 file download Forum Bat file is not working in windows Xp Forum SolvedHow do I get my windows 7 computer to be on a wireless network for file sharing and on an iphone5 hotspot at the same time? solution SolvedHas anyone tried swapping a windows 7 HDD into another computer/same make and model/ and worked? Or is it possible with win7? solution How do i make sound come out of both my headphones and speakers in Windows 7? solution How to make windows 7 work like xp Forum Is it possible to have both XP and windows 7 on the same computer Forum Is installing both windows 7 & xp make problem? Forum How to make windows save same file into two different folders? Forum How to make nvidia work, i change my xp to window 7 sp1 32bit and im using nvidi Forum how do i make a file on my laptop windows 7 solution *.bat file is not running windows XP, its immediatly closed when it ru Forum My windows 7 files are split between two hard drives in the same computer so how do I get the files all on one hard drive solution How can I edit my config.sys and autoexec.bat in windows xp when I cannot gain access to righr clicking on start? Forum Solvedhow can i install windows 7 in my pc which is having xp installed? solution How to have both windows 7 and xp Forum SolvedHow to make Xonar 7.1 work with my Radeon HD5700 on Windows 7 Forum How can i install both windows xp and windows 7 in dell xps laptop Forum SolvedCan I have both Vista 32 bit and Windows 7 64 bit on the same machine? Forum SolvedHow Can I Make My HP 7310 Work with Windows 7, 64 bit? Forum More resources Read discussions in other Windows 7 categories Configuration Customization Drivers Security Laptops !