Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将diskpart命令的输出写入文件,即说类似
diskpart
LIST PARTITION >c:\output.txt
我怎样才能做到这一点?
您可以使用/s选项来执行此操作diskpart,即
/s
diskpart /s scriptfile.txt > output.txt
wherescriptfile.txt包含要执行的命令,即
scriptfile.txt
LIST PARTITION