This tutorial will help you in creating a bootable USB drive of Windows Vista/7 which you can use to install Vista/7 in any system. It might become very useful when you don't have access to DVD drive.
1. First format your USB drive in NTFS file system. You can do it by attaching your USB drive to your system and then format it from My Computer window.
2. Now open Command Prompt window from Start menu. Right-click on Command Prompt entry in start menu and select "Run as administrator" option.
3. Now type diskpart in Command Prompt window and press Enter. It'll launch DiskPart utility:
4. Now type the command: list volume
It'll show a list of all drives in your system. Look for your USB drive entry. As in the below screenshot, the USB drive is "G" which you can determine from its "Type" entry.
5. Now you have to select the USB drive volume by providing select volume no. command. Since in this case volume no. of USB drive is "Volume 4", the command would be: select volume 4
6. Now we have to make this drive active. So type the command: active
7. Now exit diskpart by typing the command: exit
8. Now we need to create Boot sector on USB drive. We'll use "bootsect.exe" utility for this task. You can find this utility in Windows Vista/7 setup disk. It'll be present in "Boot" directory.
Now provide following command in Command Prompt: bootsect /nt60 G:
Here G is drive letter of USB drive. Replace it with the correct drive letter if your system has some other letter for USB drive.
9. At last, copy all files/folders from Vista Setup DVD to your USB drive and you have done.
Now you can boot using your USB drive and can install Windows Vista in any system.
PS: You can also use some freely available tools which will automatically create bootable USB drives.
One of them is UnetBootin which you can download from here