Install Windows 7 from a Pendrive / Create a bootable Pendrive to install Windows 7 via CMD!!!

Make sure you have a Pen-drive or USB drive with a minimum of 4 GB space and you have the Windows 7 installation DVD. This tutorial is best suited if you have a Windows 7 DVD with you else you need to change it.
1)Format the Pen-drive or USB drive in NTFS format first.
  1. From the start menu right click on the command prompt and select “Run as administrator“.
  2. Now type the following commands (Press enter key after each command).
  3. diskpart. This is to open the disk partition program.
  4. Now to show the list of drives type list disk.
  5. You can see disk’s listed there. Note down the disk number of your pendrive eg. Disk .
  6. Now type SELECT DISK X (where X is the number you noted down for the pendrive from step 5)
  7. Now type CLEAN.
  8. Now type the following commands by pressing enter after each one.
  9. CREATE PARTITION PRIMARY
  10. SELECT PARTITION 1 (Assuming your pendrive/ USB drive is 1).
  11. ACTIVE
  12. FORMAT FS=NTFS
  13. ASSIGN
  14. EXIT (Now the disk partition program will exit). Now we need to give some more commands.
  15. Now insert the Windows 7 Installation DVD and to your DVD drive.
  16. Here i am assuming DVD drive as G and Pendrive as I.(Change it accordingly).
  17. Now type G: CD BOOT
  18. Now type this command BOOTSECT.EXE / NT60 I: to update your USB drive with bootmgr code.
  19. Finally copy all the contents from the Windows 7 DVD to your Pendrive. Make sure you don’t cause any errors.
  20. Plug / Insert your pen-drive to your PC and restart the system.
  21. Now Enter the Bios system accordingly by pressing the Delete key. (This might be sometimes F2 or F12. It depends on the type of your system. Any how during the start up your system will display which key to press to enter the Bios).
  22. Now select the USB/ Pen-drive as the first boot driver.(Set the first boot priority to USB drive.).
  23. Now save the settings in Bios and restart and you will be able to Install Windows 7 using that pen-drive
  24. Enjoy the fast installation with the new bootable pen-drive which you have made.