|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem running exe in VB.NETrun a program created with QuickBasic but compiled as a standalone program using a VB.NET frontend. There is a listbox on the main form which has a list of numbers. The user selects one of those number then clicks a button to launch the exe. I am using Windows XP Pro. Here is the code that runs when the button is clicked.... Dim strFlight As String Dim strArgu As String strFlight = LTrim(CType(lstFlights.SelectedItem, String)) Dim oProc As New Process strArgu = "ah64a1\" & strFlight & "\" oProc.Start("f:\testing\llroutec.exe", strArgu) 'oProc.StartInfo.FileName = "f:\testing\llroutec.exe" When the button is clicked, you see a command window open then immediately shut down. The exe runs fine when started in a cmd.exe window using the following command, "llroutec.exe ah64a1\1015\". Is my code wrong or do you think the problem may be with Windows? Any help will really be appreciated. Thanks in advance!! Dave Dave Harris wrote:
> When the button is clicked, you see a command window open then immediately Try running something like Notepad.exe to see if it is getting executed > shut down. The exe runs fine when started in a cmd.exe window using the > following command, "llroutec.exe ah64a1\1015\". Is my code wrong or do you > think the problem may be with Windows? Any help will really be appreciated. > Thanks in advance!! > properly. When you run the app from the cmd line, what do you normally see? Does
it do some processing and then exit? Does it remain on the screen with menus, etc awaiting further input? What would you normally expect to see? Using cmd.exe worked. Thanks all for the help!!
Dave Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> wrote in message news:1119992312.807013.280860@z14g2000cwz.googlegroups.com... > When you run the app from the cmd line, what do you normally see? Does > it do some processing and then exit? Does it remain on the screen with > menus, etc awaiting further input? > > What would you normally expect to see? >
performance difference in Webservice -'Normal' way
Update MS Access Database Records Wierd menu crash Import DataRow Obstruct the Developpers to Develop and Deploy a newer version WindowsForm Exception Addin problem - "invalid class string" A mathematical issue Calculating text width when printing Checked List Box (CheckedState) |
|||||||||||||||||||||||