如何将diskpart的输出写入文件 [英] How to write the output from diskpart to a file

查看:448
本文介绍了如何将diskpart的输出写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将diskpart命令的输出写入文件,即说类似

I want to write the output from a diskpart command to a file, i.e., say something like

LIST PARTITION >c:\output.txt

我该怎么做?

推荐答案

您可以使用diskpart/s选项(即

diskpart /s scriptfile.txt > output.txt

其中scriptfile.txt包含要执行的命令,即

where scriptfile.txt contains the command to be executed, i.e.,

LIST PARTITION

这篇关于如何将diskpart的输出写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆