2
Answers

How to do this in C#?

Photo of gongdehui

gongdehui

20y
2k
1
//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?

Answers (2)

0
Photo of richard.ryerson
NA 13 0 20y
Wanted to say thanks in a new post. Thanks for looking at this and best regards, Rick