1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'ASP.NET' started by benfowler, Apr 28, 2008.

  1. benfowler

    benfowler New Member

    Joined:
    Apr 28, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    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.....
     
  2. dotnetexpert

    dotnetexpert New Member

    Joined:
    May 16, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  3. gouri

    gouri New Member

    Joined:
    Mar 14, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0

    I need O.S version of client machine in web application
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Using JS can help

    Like

    HTML:
    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";
     
  5. gouri

    gouri New Member

    Joined:
    Mar 14, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0

    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
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    That cannot be done on client machine without installing some program.
     
  7. gouri

    gouri New Member

    Joined:
    Mar 14, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Thanks!!!!!!!!!!!!!!!!
     

Share This Page