Re: Running MS-DOS compiler
running the BAT (or CMD) file should work. You should wait though, till that process has finished before trying to read the file input from the redirected file.
Use CreateProcess API and waitForSingleObject instead of the VB Shell command.
Re: Running MS-DOS compiler
Usually Compilers print their Error & other messages to StdErr. So, simple Redirection with > wont work. Try std error redirection command >& ( or is it &>, i forget).
RK
Re: Running MS-DOS compiler
Under winnt sometimes it helps to load a new command - processor.
So:
- write a batch-file that calls your compiler.
(xxx.xxx > filename)
- call the batch file from your app like that:
c:\winnt\system32\command.com /c x:\your_path\your_batch_file.bat