Create bootable pendrive with cmd

Commands Used For making bootable USB :-
a) diskpart
b) list disk
c) select disk 1 ( if your USB is of no. 2 then use "select disk 2")
d) clean
e) create partition primary
f) select partition 1 ( if your USB is of no. 2 then use "select partition 2")
g) active
h) format fs=ntfs quick (for quick format) otherwise you can use "format fs=ntfs".
i) assign - as soon as you type this command your USB drive name will change automatically.
j) exit - to exit from diskpart not from command prompt.
k) extract your windows 7/8/10 file(.iso format) using winrar in pendrive.