PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → ExeRun can't handle re-directed outputs.
ExeRun can't handle re-directed outputs.
Iniciado por Arthur Rees, out., 30 2005 12:52 PM - 1 resposta
Publicado em outubro, 30 2005 - 12:52 PM
Hi
I am attempting to execute an external .exe file (myExe) using ExeRun command. This executable normally operates on a source file and outputs results to the console window from which it is called. This output can be re-directed to a file using the MSDOS re-direction operator '>'.

When I attempt to execute this using ExeRun, it doesn't work i.e. the output_file is not produced. See code fragment below.

str = myExe + source_file + " > " + output_file
codret = ExeRun(str, exeIconize, exeWait)

Any ideas?

Arthur Rees
Publicado em outubro, 30 2005 - 4:55 PM
I don't have your exact command line in the text of your request, so I m' not sure that my 'solution' will work for you, but it looks like you could be in in the case of 'long name with spaces' and you need to put part or all of your string between quotes (see WD help file for that case)...

Hope this help

Fabrice Harari
http://www.fabriceharari.com