Code Comments
Programming Forum and web based access to our favorite programming groups.How do I run a *.exe program from within my fortran code? What would the lines of code look like? Also, how can open the command prompt from within my source code. docterry
Post Follow-up to this messageOn 24 Apr 2005 19:50:14 -0700, "docterryt" <docterryt@adelphia.net> wrote: >How do I run a *.exe program from within my fortran code? > >What would the lines of code look like? > >Also, how can open the command prompt from within my source code. > >docterry It would help if you said what compiler and system you're using. For spawning another program, look through your manual for a command like "system", "spawn" or "execute." Probably with some other letters thrown in to give a system-ish feel to the name. For reading the command line, look for a command like "getarg" or "iargc." Something with "arg" in it. Ken Plotkin
Post Follow-up to this messageI'm running Absoft Pro 7.5 in Windows XP Pro. I look through my manual and see what I can find. Thanks
Post Follow-up to this messageTwo points: Be aware that some intrinsics will start another process, and wait for its completion, whilst others will start another process and immediately return Secondly, can anyone do this for a Lahey .NET compiler (either way) or g77 (immediate return)
Post Follow-up to this message"docterryt" <docterryt@adelphia.net> wrote in message news:1114397414.277309.60750@o13g2000cwo.googlegroups.com... > How do I run a *.exe program from within my fortran code? By using the system calls that the operating system provides. This is highly system specific. Jim
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.