Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Opening an fotran .exe file from Visual Basic

  1. Oct 1, 2006 #1
    Opening a fortran .exe file from Visual Basic

    Dear friends,

    I want to do something that is probably not too hard, I just can't figure it out. I want to call a executable (.exe) file that I have written in Fortran from my visual basic code. Let's say push a button and it automatically runs my (.exe) program. This way I would combine computational efficiency with a nice graphical user interface.

    Any suggestions?
     
    Last edited: Oct 1, 2006
  2. jcsd
  3. Oct 1, 2006 #2
    As far as i remember there was a command like:

    Shell("c:\wherever\something.exe")
     
  4. Oct 1, 2006 #3
    Thanks this seems to work.
     
  5. Mar 13, 2007 #4
    Hi, I tried the shell command in visual basic and it works, but the problem is the something.exe file is not able to read the input from a file. However when it is opened directly (ie not from visual basic, but from fortran compiler), it works fine. Can you help me?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Opening an fotran .exe file from Visual Basic
  1. Help! File won't open: (Replies: 8)

  2. How to open .py file? (Replies: 9)

Loading...