select disk 1
clean
create partition primary
select partition 1
active
format fs=NTFS QUICK
assign
exit
Make the flash drive bootable. Use the bootsect utility available on Windows 7/Vista as follows:
Insert the Windows 7/Vista DVD into the computer and write down the DVD drive letter. In this guide, the DVD is the D: drive and the USB is the G: drive.
Navigate to the folder containing bootsect .D:
cd d:boot
Use bootsect to make the USB drive bootable. The drive will be updated with compatible BOOTMGR code and prepared to boot Windows 7/Vista.BOOTSECT.EXE /NT60 G:
Close the Command Prompt window.
Copy all files from Windows 7/Vista DVD to formatted USB. The safest and fastest way is to use Windows Explorer. Open the disc, select all the data, drag and drop them onto the flash drive. This copying process may take several minutes.
Change boot order. To boot from a USB drive, you need to set the BIOS to boot from the USB first instead of the hard drive. If you want to open the BIOS, restart the computer and press the key displayed on the screen to access Setup. This key will vary depending on the manufacturer, but is usually F2, F10, F12or Del.
Open the Boot menu on BIOS. Change the first Boot Device to a USB drive. You need to make sure the USB is plugged in, otherwise you won't have that option. Depending on the manufacturer, the option displayed is Removable Device or the model name of the flash drive.
Save changes and reboot. If you set the appropriate boot order, the Windows 7 or Vista installation program will load after the manufacturer logo disappears.
Install Windows. Once the installation is loaded, the Windows setup process will begin. You can see more online about how to install Windows 7 for more in-depth instructions.