2
Answers

How to do this in C#?

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)