: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 :)

Recommended Answers

All 2 Replies

Use System.Diagnostics.Process class.

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 ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.