How to do this in C#?
//vc++:
FormatMyDisk(char * TransData, char* VolumeName)
{
char *FormatW2K = "CMD.EXE";
char FormatW2KParam[100] = {0};
sprintf(FormatW2KParam, "/C \"format.com %c:/q/x/FS:FAT/V:%s\"",*TransData,VolumeName);
ShellExecute(NULL,"open", FormatW2K, FormatW2KParam, NULL, SW_SHOW);
}
what does the identical C# code look like?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

bilnaadRank #2,169 · 655 reputationPosted Nov 1, 2004, 12:13 AM EST
gongdehui62 reputationPosted Nov 1, 2004, 3:34 AM EST