我使用的是「的ShellExecute」功能在Windows Vista管道數據與窗口「ShellExecute的」功能的文件
有什麼辦法,以管道輸出到一個文件?
即
MySqlDump.exe「-u用戶1 -ppassword DBNAME> TheOutputFile.Sql
這裏我的代碼
theProgram := 'MySqlDump.exe';
itsParameters := '-u user1 -ppassword dbName';
rslt := ShellExecute(0, 'open',
pChar (theProgram),
pChar (itsParameters),
nil,
SW_SHOW);
編輯:
我已經試過
itsParameters := '-u user1 -ppassword dbName > TheOutputFile.Sql';
但這不起作用
感謝mysqldump中的--result-file選項,效果不錯:) – 2010-01-19 14:17:19