We will perform this process in two steps, in the first step, let’s plug the USB memory into the PC and run Cmd with admin privileges and give the following commands respectively, first we run diskpar
diskpart list disk select disk x
The letter of your USB memory will replace x in the last command
clean create partition primary select partition 1 active format fs=fat32 assign exit
in the second step, we insert our Vista or Windows 7 DVD and give the following command
xcopy X:*.* /s/e/f Y:
X will be replaced by the letter of your DVD drive