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?
gongdehuiPosted Nov 1, 2004, 8:34 AM
bilnaadPosted Nov 1, 2004, 5:13 AM