0

:icon_lol: I have stated to write a C# program , now im sucked :icon_sad:

I searched this over internet for long, but i ddint find out what i exactly need to my project..

Does anyone of you guys know to access cmd actions via c# ?
it will be great if you can give me details coding sample :icon_sad:

Let me explain what this software is all about ..
this particular application must access cmd's (DISKPART) and its properties & commands as well ..

im going select a drive by typing: select disk 13 Now run the following commands…

clean
create partition primary
select partition 1
active
format fs=fat32
assign
exit

not only these ... cmd actions like xcopy so many :icon_redface:
can any one help me ?

Thanks in advance :)

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by g2gayan
0

Use System.Diagnostics.Process class.

thanks,, can you just show me a way ( coding example ) of intergrating it with cmd ? maybe for diskpart list volume or something like that

...

Thanks in Advance ;)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.