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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top