我在 windows vista 中使用 '<strong>ShellExecute' 函数
有没有办法将输出通过管道传输到文件?
IE
MySqlDump.exe '-u user1 -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';
但这不起作用