I have this commands for diskpart: create vdisk file="C:\mydisk.vhd" maximum=524288…
- User
I have this commands for diskpart:
create vdisk file="C:\mydisk.vhd" maximum=524288 type=fixed select vdisk file="C:\mydisk.vhd" attach vdisk convert mbr create partition primary format fs=ntfs label="MyDisk" quick assign letter=E detach vdisk
Use the internet and write me an simple bat file, that will ask directory with name of the disk, size of the disk, label of the disk and assign letter for the disk
- Assistant
Creating a batch file to perform the operations you described involves using variables in a batch script to gather user input for the directory, name, size, label, and letter for the disk. Below is a simple batch file that will prompt the user for these inputs and then execute the
diskpartcommands with the provided input.