gongdehui

gongdehui

  • NA
  • 63
  • 0

How to do this in C#?

Oct 31 2004 10:33 PM
//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)