SOLVED Diskpart - automate to make a usb bootable


Joined
Jan 13, 2016
Messages
1
Reaction score
0
I am looking for a way to create "Script Files" (Batch Files do not work) to automatically configure a USB to be bootable.
I only need to make the USB bootable, I would add an ISO file later.

So, I want to get the following program and commands into script form to complete the task as follows:-

(At the Command Prompt, type)
DISKPART

(then at the Command Prompt, load the following commands, one by one, because some require user input)
LIST DISK
SELECT DISK # (where # is the number of the USB drive as listed, to be input by the user)
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=FAT32 QUICK
ASSIGN
EXIT

Basically, that is it, all that I need to format the USB to make it bootable for ISO files.

Any help, guidance or even code, would be most appreciated.

Regards,
Mike
 
Ad

Advertisements


Top