Ok, reading from stderr has gotten me some output. But I am still having the problem of the local directory for reading data. Consider this batch file:
@echo on
cd C:\Program Files\The SWORD Project
"C:\Program Files\The SWORD Project\diatheke.exe" -b KJV -m 5 -k %1 %2 %3 %4 %5
I thought that would solve the problem by cd'ing over to the directory and then running the process, but it didnt help. I'm still getting a null output. Im positive that something works though because if I run the diatheke.exe with no parameters from stdio.dll, I get the standard help output (OK Diatheke command-line SWORD frontend Version 4.0 by Chris Little) to stderr. Also, if I go to a DOS prompt, and run that batch file from a different directory, I get the output of the bible verse to my cmd window.
Is there another standard stream that the output could be going to besides out or err? Or is it because of windows XP that it's not getting read correctly? |