Hi, Troy.
This will return the name of your operating system.
String s;
s = System.getProperty("os.name", "not specified");
System.out.println(" The name of your operating system is: " +
s);
HTH. ;o)
> Ricky Y. Artigas, MCDBA
> Database Administrator
> Analyst/Programmer
> EasyCall Communications
> Philippines, Inc.
> tel:(632) 533.80.01 extn.6610
> -------------------------------
> IMPORTANT NOTICE:
> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -----Original Message-----
> From: Campano, Troy [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 10:14 PM
> To: [EMAIL PROTECTED]
> Subject: Java and System Commands
>
> Is there a way that Java can get system information like Operating System
> name, Operating System version, amount of memory, etc?
> I'm trying to do this so it's OS independent so it would work on Windows,
> AIX, Sun, or Linux.
>
> Basically something like RuntimeCommand("OS_NAME") could return "Windows
> NT" or "Linux".
>
> Any ideas?
>
>
> thanks!
>
> troy campano
>
> ==========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com