Opening an fotran .exe file from Visual Basic

  • Thread starter Thread starter jaap de vries
  • Start date Start date
  • Tags Tags
    File Visual
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 6K views
jaap de vries
Messages
168
Reaction score
0
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:
Physics news on Phys.org
As far as i remember there was a command like:

Shell("c:\wherever\something.exe")
 
Thanks this seems to work.
 
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?