Hi
I'm using ShellExecuteEx to run a dos program from my bcb aplication. In lpFile i put the path to the program, and in lpParameters the line with parameters.
well, the dos program sends some messages to the monitor and i want to save them to a file.
If I run the program in command pronpt it's easy to do that:
prog.exe -i something - o something_else 2> output.txt
( 2> because i know it sends the messages to stderr)
I tried do had the " 2> output.txt" to the lpParameters string but it's not working. :\
So, how can i save those messages to a file?
I'm using ShellExecuteEx to run a dos program from my bcb aplication. In lpFile i put the path to the program, and in lpParameters the line with parameters.
well, the dos program sends some messages to the monitor and i want to save them to a file.
If I run the program in command pronpt it's easy to do that:
prog.exe -i something - o something_else 2> output.txt
( 2> because i know it sends the messages to stderr)
I tried do had the " 2> output.txt" to the lpParameters string but it's not working. :\
So, how can i save those messages to a file?