Quantcast
Channel: Britec Tech Support Forum - All Forums
Viewing all articles
Browse latest Browse all 3686

HOW TO AUTOMATE DISKPART USING A BATCH FILE

$
0
0
Hello Brian and Administrators

I am trying to run DISKPART from a batch file to save keying in all the commands every time I want to make a USB stick bootable!

Although there seem to be numerous solutions on the Internet I have yet to find one which works.
I am running the latest version of Windows 10 PRO.

I would like to open a command prompt, with administrator rights, to enter the following sequence of commands (without numbers 1 to 9):-

1.  diskpart
2.  list disk
3.  select disk
4.  clean
5.  create partition primary
6.  select partition 1
7.  active
8.  format fs=fat32 quick
9.  assign
Type EXIT and ENTER to finish

I also want to be able to enter "LIST DISK" and "SELECT DISK" with an input choice for the disk number.

I know you guys make "great videos" but as long as you can give me clear instructions, details could come just as coding!
Please specify any file(s) I need to produce.

Thank you for any assistance you can give!

Kind Regards
Mike-m5

Viewing all articles
Browse latest Browse all 3686

Trending Articles