From: Mr. X. on 30 Mar 2010 15:20 One problem. I did : process.start("myprog.exe") but when returning the calling program, and trying do something I got the message : Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue ... What should I do ? Thanks :) "Herfried K. Wagner [MVP]" <hirf-spam-me-here(a)gmx.at> wrote in message news:OcJT1ED0KHA.5836(a)TK2MSFTNGP04.phx.gbl... > Am 30.03.2010 09:45, schrieb Mr. X.: >> What is the difference between process.start and shell? > > 'Shell' is VB's way, 'Process.Start' is the method in the .NET Framework. > There are some small differences, but in general 'Process.Start' is more > powerful. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
From: Herfried K. Wagner [MVP] on 30 Mar 2010 15:37 Am 30.03.2010 21:20, schrieb Mr. X.: > One problem. > I did : process.start("myprog.exe") > but when returning the calling program, and trying do something I got > the message : > Unhandled exception has occurred in your application. > If you click Continue, the application will ignore this error and > attempt to continue ... Post the complete exception information (which exception, additional exception message, etc.). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
From: Mr. X. on 30 Mar 2010 17:15 OK, solved. .... and about shell and process.start. by command "shell" I can wait till I close the executable program (it may be a modal dialog), and process.start doesn't have this option. Besides, "shell" cannot send to the executable program arguments, and process.start can. I can use mutex & shell in order to send the executable program some arguments. Thanks :)
From: Cor Ligthert[MVP] on 31 Mar 2010 04:08 It has even more options, one of those is waitforexit but in your case probably better to get the output content using the reader. Have a look at those to get some examples http://www.vb-tips.com/StartProcess.aspx Cor "Mr. X." <nospam(a)nospam_please.com> wrote in message news:eER4r4E0KHA.3572(a)TK2MSFTNGP02.phx.gbl... > OK, solved. > > ... and about shell and process.start. > by command "shell" I can wait till I close the executable program (it may > be a modal dialog), and process.start doesn't have this option. > Besides, "shell" cannot send to the executable program arguments, and > process.start can. > I can use mutex & shell in order to send the executable program some > arguments. > > Thanks :)
From: Mr. X. on 31 Mar 2010 05:01 Well, Thanks I will check this out. Thanks :) "Cor Ligthert[MVP]" <Notmyfirstname(a)planet.nl> wrote in message news:eSVnflK0KHA.3412(a)TK2MSFTNGP05.phx.gbl... > It has even more options, one of those is waitforexit but in your case > probably better to get the output content using the reader. > > Have a look at those to get some examples > > http://www.vb-tips.com/StartProcess.aspx > > Cor > > "Mr. X." <nospam(a)nospam_please.com> wrote in message > news:eER4r4E0KHA.3572(a)TK2MSFTNGP02.phx.gbl... >> OK, solved. >> >> ... and about shell and process.start. >> by command "shell" I can wait till I close the executable program (it may >> be a modal dialog), and process.start doesn't have this option. >> Besides, "shell" cannot send to the executable program arguments, and >> process.start can. >> I can use mutex & shell in order to send the executable program some >> arguments. >> >> Thanks :) >
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: common ways creating projects. Next: auto sizing data grid view |