This is country that has been traversed before but I am having a problem
with a DOS program (16bit not a console-mode app) under Win NT. I want to 
capture the output from the DOS program which does write to standard output 
(piping works) into a memo for inspection.

I have used David Rifkind's excellent Proctest for my code and it has no
problem with 32bit console-mode programs. When I try to execute the DOS 
program, the createprocess call dies with "Access denied" (error 5). Strange.

The command is mkchrt -C -Dfile.
If I instead execute

cmd /c mkchrt -C -Dfile,

mkchrt runs perfectly except:
1/ A dos box window appears on the screen (though it is always empty)
2/ I dont get any output captured from program.

If I try
cmd /c mkchrt -C -Dfile > test.out

The test.out is also empty but always has something in it I just run mkchrt
on the command line.

Any ideas please?? I've checked and rechecked startupinfo parameters and
cant find anything.




----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand
Ph +64 4 5704821, fax +64 4 5704603
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to