about using process

  • Thread starter Thread starter Norton
  • Start date Start date
N

Norton

I know Process can used to call an external application like
myProcess.StartInfo.FileName = myDocumentsPath + "\MyFile.doc"
myProcess.StartInfo.Verb = "Print"
myProcess.StartInfo.CreateNoWindow = True
myProcess.Start()
However, what if i want to call a sub function which requires a long time to
process?

I am trying to use a thread to do so but it is hard to control the process
state, any suggestions?
 
* "Norton said:
I know Process can used to call an external application like
myProcess.StartInfo.FileName = myDocumentsPath + "\MyFile.doc"

Use the '&' operator to concatenate strings in VB.NET.
myProcess.StartInfo.Verb = "Print"
myProcess.StartInfo.CreateNoWindow = True
myProcess.Start()
However, what if i want to call a sub function which requires a long time to
process?

Your application won't wait for the "shelled" application to terminate.
 
Hi Norton,

Do you read the standardoutput from the shell application in your program?

Otherwise see the statement from Herfried.

Cor
 
Back
Top