How to detect Windows version and run a specific program

  • Thread starter Thread starter Cliff Seely
  • Start date Start date
C

Cliff Seely

I am looking for a way to detect the version of Windows (2K, XP or
Vista) a user has from a web page and run one of several programs
based on that. Can anyone help?

Thanks,
Cliff
 
Google for: "detect windows os version script"
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
|I am looking for a way to detect the version of Windows (2K, XP or
| Vista) a user has from a web page and run one of several programs
| based on that. Can anyone help?
|
| Thanks,
| Cliff
|
 
Cliff Seely said:
I am looking for a way to detect the version of Windows (2K, XP or
Vista) a user has from a web page and run one of several programs
based on that. Can anyone help?

The http headers can help you determine the OS & browser being used to
access a webpage.

NT4= Windows NT4
NT5= Windows 2000
NT5.1= Windows XP
NT5.2= Windows 2003
NT6 = Windows Vista

What type of program are you going to be running? Server side or client
side?
 
The http headers can help you determine the OS & browser being used to
access a webpage.

NT4= Windows NT4
NT5= Windows 2000
NT5.1= Windows XP
NT5.2= Windows 2003
NT6 = Windows Vista

What type of program are you going to be running? Server side or client
side?

Thanks for the reply. The program is client side.
 
For Client-Side you can use JavaScript to do this. See the example athttp://javascript.internet.com/miscellaneous/browser-check.html

--
David Berry
Microsoft MVP - FrontPage
FrontPage Support:http://www.frontpagemvps.com/
-----------------------------------
To assist you in getting the best answers for FrontPage support see:http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
-----------------------------------







- Show quoted text -

Thanks for the reply. However, I need to determine the version of
Windows the user has rather than the browser. If it is Windows 2000,
I want to run one program and if it is XP or Vista I want to run
another program. I think I need to use navigator.appVersion.indexOf
but I can't find the values that would indicate if it's 2K, XP or
Vista.
 
Thanks for the reply. However, I need to determine the version of
Windows the user has rather than the browser. If it is Windows 2000,
I want to run one program and if it is XP or Vista I want to run
another program. I think I need to use navigator.appVersion.indexOf
but I can't find the values that would indicate if it's 2K, XP or
Vista.- Hide quoted text -

- Show quoted text -

Well, I just found it here: http://www.begues.net/javascript/6350-sistema_operativo.html
(in Spanish but easy enough to change the variable to English).
 
Back
Top