Associate
- Joined
- 27 Jan 2005
- Posts
- 1,395
- Location
- S. Yorks
I have been given the dubious task of writing a front end to a data processing tool, basicly the front end needs to write a text file, it should then call the data processor(dos based fortran) the data processor then produces two output files.
I have used shell ("d:\matt\matt.exe", appwinstyle.maximisedfocus) this appears to call the dos based processor but it then closes down straight away without processing the file. If I double click the data processor, through windows explorer, it processes the file correctly. If I call the processor using VB 6 it opens up, but cannot find the files specified for processing.
Couple of questions:
What am I doing wrong - why does the dos file processor see the text file when manually started but not when started via VB?
What is the corret way of starting the dos file and then when the dos program returns control to the calling program, it continuing on it's merry way?
regards,
Matt
I have used shell ("d:\matt\matt.exe", appwinstyle.maximisedfocus) this appears to call the dos based processor but it then closes down straight away without processing the file. If I double click the data processor, through windows explorer, it processes the file correctly. If I call the processor using VB 6 it opens up, but cannot find the files specified for processing.
Couple of questions:
What am I doing wrong - why does the dos file processor see the text file when manually started but not when started via VB?
What is the corret way of starting the dos file and then when the dos program returns control to the calling program, it continuing on it's merry way?
regards,
Matt