程序代码如下:
DWORD err=0;
CString CStr="cmd.exe /c ";
CString CSpath="C:\\Program Files\\MySQL\\MySQL Server5.0\\bin\\";
CString CScommand="mysqldump -uroot -p1qaz2wsx camysqlDB > D:\\camysqlDB.sql";
CString CSconect=CStr+CSpath+CScommand;
int ret=WinExec(CSconect,0);
err=GetLastError();ret的返回值是33;
err的值是0;
只有一个为0K的camysqlDB.sql文件在D盘生成
怎么解决呀,小弟急呀