Jump to content

Call to Fortran EXE from VB Express 2010 not working

- - - - -

  • Please log in to reply
No replies to this topic

#1
AWS

AWS

    Administrator

  • Administrators
  • 54,026 posts
  • LocationJoliet, IL U.S.A.

Can anyone recommend a solution to my problem - I have a button on a form that is supposed to run an executable (compiled Intel Fortran v11) on the click event. Here is the code:

Private Sub RunButton_Click() Handles RunButton.Click

    Try

        System.Diagnostics.Process.Start("C:testDirtestCode.exe")

    Catch ex As Exception

        MessageBox.Show("Unable to locate desired file")

    End Try

End Sub

I'm certain the path is correct and I have verified that running the testCode.exe from the cmd window works as it should (testCode.out file is updated). When I try to run the process via the RunButton it appears to work...no errors are reported or caught. However, the expected output file is not updated indicating testCode.exe did not execute. All of the online support I have researched indicates this should work. Please help.


View the full article




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users