从C#运行cmd.exe [英] run cmd.exe from c#

查看:118
本文介绍了从C#运行cmd.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我需要从C#程序格式化Flashmemory
我尝试了在互联网上找到的这段代码

hi every one

i need from c# program to format flashmemory
i try this code which i found it in the internet

<br />
process.start("cmd.exe",@"/c choice /c Y /N/D y /T 0 & format k:/Q/v:xx/FS:NTFS");<br />


但是当我运行它时,cmd.exe给了我消息:
准备好后按Enter ..."

但我想格式化内存而没有任何警告

任何人都可以帮助我调用cmd选项(/c选择/c Y/N/D y)

谢谢大家


but when i run it cmd.exe gave me message :
"press Enter When you ready..."

but i want to format the memeory without any warning
and
any one can help me with call cmd option(/c choice /c Y /N/D y )

thanks all

推荐答案

尝试一下:format /q /v:xx /fs:ntfs k:


这篇关于从C#运行cmd.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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