I have a bat script:
diskpart /s test.txt E:
select disk 2
assign drive letter = %1%
But the output gives a error like, invalid par