Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
462 views
in Technique[技术] by (71.8m points)

batch file - How to read argument in diskpart

I have a bat script:

diskpart /s test.txt E:

Diskpart

select disk 2

assign drive letter = %1%

But the output gives a error like, invalid param for diskpart. Could someone guide me on this to execute.

question from:https://stackoverflow.com/questions/66048611/how-to-read-argument-in-diskpart

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...