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.

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 correct 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?

datagrids:

I am having a total brain fart with this...

I have a form with 22 datagrid controls on it, they are populated from an Access database. I am wanting to read the data from the datagrid controls, the access data provides base data that the user may want to modify, but I can't for the life of me think how to do it. I know in VB6B you could set up a control array, but can this be done in .net 2003?

regards,

Matt