How can I pass parameter from my batch script to diskpart.exe?
Batch file:
DISKPART /s diskpart.txt F
This is giving me an error:
Diskpart unable to process parameter
diskpart.txt:
SELECT DISK 3
ATTRIBUTES DISK CLEAR READONLY
ONLINE DISK
SELECT DISK 3
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER %1
EXIT
Also, how to read it from diskpart.exe?
question from:https://stackoverflow.com/questions/65943259/how-to-pass-to-and-read-from-diskpart-exe