Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Opening an *.exe program from within my fortran code
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


Report this thread to moderator Post Follow-up to this message
Old Post
docterryt
04-25-05 08:58 AM


Re: Opening an *.exe program from within my fortran code
On 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


Report this thread to moderator Post Follow-up to this message
Old Post
Ken Plotkin
04-25-05 01:58 PM


Re: Opening an *.exe program from within my fortran code
I'm running Absoft Pro 7.5 in Windows XP Pro.  I look through my manual
and see what I can find.

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
docterryt
04-26-05 09:01 AM


Re: Opening an *.exe program from within my fortran code
Two 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)


Report this thread to moderator Post Follow-up to this message
Old Post
David Flower
04-26-05 01:59 PM


Re: Opening an *.exe program from within my fortran code
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Jim
04-27-05 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:24 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.