Tuesday, October 5, 2010

Check your Operating System & its version

Hi folks,

Hey guys, if you want to know which operating system you are using & its version, there are 2 ways to do it as follows;

  • Using Command Prompt
  • Using Programming


1. Using Command Prompt

  • Go to Start Menu
  • Go to Run
  • Type cmd & press Enter/return. Command Prompt will open.
  • Type ver & press Enter/return, you will get the Name of your OS & its Version that you are using



2. Using Programming


Here we are using a Java Program to find the IP Address. The Java Program to find the IP Address is as follows;

--------------------------------------------------------------------------------------

package com.si.java.utility.os;

/**
 *
 * Language : Java
 * File : MyOS.java
 * Date : Tuesday, October 5, 2010
 * @author Atul Palandurkar
 * Email : atul.palandurkar@gmail.com
 * Website : www.shardainfotech.com
 *
 */
public class MyOS {

    public static void main(String[] arg) {

        //To find the name of operating system.
        String myOS = System.getProperty("os.name");
        System.out.println("Operating System : " + myOS);

        //To find the version of operating system.
        String myOSVersion = System.getProperty("os.version");
        System.out.println("Version : " + myOSVersion);
    }
}

--------------------------------------------------------------------------------------

So, what are you waiting for?
Use it to create various system utilities & have fun.

Labels:

1 Comments:

At October 5, 2010 at 4:54 PM , Blogger Raj said...

Thanks a lot Aatul for this. For many days i was looking for this for my engineering project & i was very much in need of it as i was not getting any clue for how to find the os? Really thanks a lot.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home