Creating a Windows7 Bootable USB Drive

April 13, 2011
Select a 4GB+ USB Drive.

1. Formatting the Drive using command prompt. Open the command prompt as Administrator. and run the following commands.

        diskpart
        list disk
        select disk 1    (Replace the number 1 with the number of your disk)
        clean
        create partition primary
        select partition 1
        active
        format fs=NTFS
        assign
        exit

2. Make the Drive Bootable

    Insert your windows 7 dvd into the drive or open the image using virtual drive and note down the drive letter. Change the cmd directory to dvd and execute the following commands. Replace D with your dvd drive letter.

        d:
        cd d:\boot
        bootsect.exe /nt60 g:

3. Copy the Installation DVD to the USB Drive.
4. Set your BIOS to Boot from USB and try installing windows7

 

Making the USB Drive to Write Protect.

February 24, 2011
This can be done by adding a small entry to the Windows registry which acts as a switch that can be enabled to make use of the write protection or disabled to allow write access.

1. Open the Registry Editor (Open the “Run” dialog box, type regedit and hit “Enter”).

2. Navigate to the following Registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\

3. Create a New Key named as StorageDevicePolicies. To do this right-click on Control, and click onNew->Key and name it as Storag...


Continue reading...
 

Java First Program "HelloWorld"

January 6, 2011
// Outputs "Hello, world!" and then exits
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}


In this program, we are defining the class HelloWorld. And the file name should be HelloWorld.java. This simple program only contains a single line to print "Hello, world!".
And every program should contain a main class to execute the program.
Continue reading...
 

Basics that everyone must know to create a Java program

January 6, 2011
For a beginner to start creating programs in Java,
1. Install Java environment. (JDK)
2. Write a Java Program.
a. Write the Java program in a text document and save it with ".java" extension.
b. The name of the java file should be the class name in the program.
3. Compile Java Program.
a. To compile the java program using command prompt, we have to use some commands.
- Open DOS prompt. (Press "Window+R" -->> write "cmd" --->> press "Enter")
- Change the command prompt directory to the director...
Continue reading...
 

Writing Comments in Java Programs

January 6, 2011
// This is an example of a single line comment using two slashes
 
/* This is an example of a multiple line comment using the slash and asterisk.
   This type of comment can be used to hold a lot of information or deactivate
   code but it is very important to remember to close the comment. */
 
/** 
 * This is an example of a Javadoc comment; Javadoc can compile documentation
 *  from this text. 
 */

Continue reading...
 

Understanding Java With Examples

January 6, 2011
   


We can try to understand Java Programming Language by doing examples. With very simple programs. So that we can add up them and use those methods to do complex programs.


Continue reading...
 

Translate This Page

 


Make a free website with Yola