Jump to content

discover os for install?


Recommended Posts

i have a unattended multiboot dvd, and wish to have it install on both xp and 2003.

for the most part this is fine, except for perfectdisk which has 2 versions for server and workstation.

so, what i need is a batch that will detect the o/s and install from one location if it's 2k3 and a different one if XP.

Can anyone help with this?

cheers

Link to comment
Share on other sites


@echo off

for /f "tokens=2,3" %%i in ('ver') do SET OS_VER=%%i %%j

if "%OS_VER%"== "Windows XP" (
   <Perfectdisk for XP path and filename here>
) ELSE (
   <PerfectDisk for Win2003 path and filename here>
)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...