Hi
I am using the ‘ShellExecute’ function in windows vista
Is there any way to pipe the output to a file?
i.e.
MySqlDump.exe '-u user1 -ppassword dbName > TheOutputFile.Sql
Here my code
theProgram := 'MySqlDump.exe';
itsParameters := '-u user1 -ppassword dbName';
rslt := ShellExecute(0, 'open',
pChar (theProgram),
pChar (itsParameters),
nil,
SW_SHOW);
EDIT:
I have tried
itsParameters := '-u user1 -ppassword dbName > TheOutputFile.Sql';
but this does not work