shell (1 Viewer)

Matt_Hirst

Access Numpty
Local time
Today, 15:02
Joined
Nov 25, 2006
Messages
15
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 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
 

Elvis

Registered User.
Local time
Today, 15:02
Joined
Sep 28, 2001
Messages
26
I was looking to open the windows calculator from within an application. I came across an article that said not to use the shell command and to use the following:

System.Diagnostics.Process.Start _
("C:\WINDOWS\system32\Calc.exe")

Might work for what you want, just change the path to your file.
 

Users who are viewing this thread

Top Bottom