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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute script into Fortran script

Status
Not open for further replies.

tonivm

Technical User
Mar 2, 2006
64
ES
Hi everybody:
I'm newbie in fortran language, and I would like to inicializate a script into Fortran programe. I use Microsoft Developer Studio.
I tried this like:
call system('start /w C:pATH\xxx.exe>>output.dat')
or another option like:
a=system('C:pATH\xxx.exe>>output.dat')
but they did not work correctly. Somebody could tell me any solution.
Thanks in advance and cheers !! :D
 
Don't think the redirection works very well in MS. Try running it as a batch file
Code:
call system ('doit.bat')
In doit.bat you'd have
Code:
C:PATH\xxx.exe >> output.dat
Note that this will execute whereever C is set to. For instance, if you are currently in themoon, it will execute C:\themoon\PATH\xxx.exe. If it needs to execute C:\PATH\xxx.exe, you need the leading \ before PATH.
 
thanks wxb. I did it and it works correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top