Last active
July 28, 2022 16:09
-
-
Save vadimkantorov/ed51b5953c1ab429a3aa06d8b10ff506 to your computer and use it in GitHub Desktop.
Create a virtual flash drive, format and attach it in Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem diskpart /s attach_virtualusb.diskpart | |
select vdisk file=C:\Users\vadim\virtualusb.vhd | |
attach vdisk | |
assign letter=B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem diskpart /s create_virtualusb.diskpart | |
create vdisk file=C:\Users\vadim\virtualusb.vhd maximum=50 type=expandable | |
select vdisk file=C:\Users\vadim\virtualusb.vhd | |
attach vdisk | |
create partition primary | |
format fs=ntfs label=virtualusb quick | |
detach vdisk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment