Setting command.com initial environment from Delphi GUI
Posted on 1999-09-16
I have a Delphi 3 program which creates a batch file based on selections made by the user. I then use WinExec( ) to run the batch file.
The problem is, when WinExec opens the DOS Shell (in order to run the batch file) the DOS Shell does not have the correct initial environment size (4096 KB) needed for the batch file.
How do I programmatically set the initial environment so I don't get "Out of environment space" when I run the batch file?
Please...only submit comments for now. If a comment works, I'll have you resubmit the comment as an answer.