- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just came over to Windows FORTRAN from the UNIX side where we could call a text file with UNIX system commandsfrom within the FORTRAN code, e.g.,
istatus = system('sedfile')
where 'sedfile' would be a text file of UNIX commands (rm, ls, etc.) of the type we would enter from the screen prompt line. Is there an equivalent capability within Windows FORTRAN (using BASIC commands instead of UNIX, of course) to use system commands (e.g., dir) ? I can't track down the equivalent capability wihtin Compaq's Language Reference Manual but would think it a pretty standard tool for all flavors of FORTRAN.
Thanks much!
Carl
Link Copied
- « Previous
-
- 1
- 2
- Next »
25 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you expect this to do? You're asking Windows to "run" a Fortran source file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oh ok I thought "system" is doing the same as "runqq". so that I should not use "system" for the same purpose. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is very similar, but the same issue applies. You can't "run" a .f90 file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks so much for your reply. The problem I was concerned about is now solved.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »