Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about SYSTEMQQ input file and related

Status
Not open for further replies.

nanomechanic01

Mechanical
Joined
May 9, 2011
Messages
1
Location
US
Hey!

I am using intel visual fortran and am trying to execute an exe from within my program.

structure of my program:
!----------------
Program NEW
USE IFPORT
:
i=systemqq('arcade1.exe') ! input file name = 1.xyz
i=systemqq('arcade1.exe') ! input file name = 2.xyz
:
End program
!----------------

when executed, arcade1.exe requires the user to enter an input file name (1.xyz). Can this be done from inside my program?

I do have access to arcade1.exe source (arcade.f90). one easy way would be to have arcade.f90 to read 1.xyx from within; without prompting for a user input. although this will creates problems if I want to use 2.xyz with my next systemqq.

whats a good way to handle this and have the program NEW define the input files instead?

thanks!!
 
Try
Code:
i=systemqq('arcade1.exe < 1.xyx')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top