find out the OS Version my computer is running with ASP.NET???

Newbie Member
28Apr2008,23:28   #1
benfowler's Avatar
Hi..I am new to this community and very new to this....
How can I find out the OS Version my computer is running with ASP.NET???

Thanks for any reply.....
Light Poster
16May2008,16:17   #2
dotnetexpert's Avatar
Hi,

you need to know version of client machine or the server machine on which your website resides.

also is it hosted on Windows/Linux/Mac ?

once you provide this details, i'll surely answer your q's.
Newbie Member
14Mar2009,16:18   #3
gouri's Avatar
Quote:
Originally Posted by dotnetexpert View Post
Hi,

you need to know version of client machine or the server machine on which your website resides.

also is it hosted on Windows/Linux/Mac ?

once you provide this details, i'll surely answer your q's.

I need O.S version of client machine in web application
Go4Expert Founder
14Mar2009,16:45   #4
shabbir's Avatar
Using JS can help

Like

HTML Code:
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
Newbie Member
14Mar2009,17:15   #5
gouri's Avatar
Quote:
Originally Posted by shabbir View Post
Using JS can help

Like

HTML Code:
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

Thanks for quick reply
Actually I want location of hosts file for appending some IP in that
Windows Vista = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC
Win 98/ME = C:\WINDOWS
Go4Expert Founder
14Mar2009,19:00   #6
shabbir's Avatar
That cannot be done on client machine without installing some program.
Newbie Member
16Mar2009,08:42   #7
gouri's Avatar
Quote:
Originally Posted by shabbir View Post
That cannot be done on client machine without installing some program.
Thanks!!!!!!!!!!!!!!!!