Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29245 Discussions

how can i call a setup.bat file from visual studio - fortran

jct_office
Beginner
670 Views
I'm trying to write a fortran application, and i want to generate some pre-defined "logicals" (using VAX-VMS lingo). For example,in a command-prompt application, I have file, SETUP.BAT, which contains lines such as:
@echo off
set idata=c:directory
set fort11=%idata%input_data.dat
So, in my FORTRAN application, I simply have:
open(11,status='old'...)
read(11,...)
But, if I want to debug the program using the visual studio enviroment, I need to somehow invoke my SETUP.BAT file.
How can I do this?
Mucho thanks for anybody with the solution.
Jim
0 Kudos
1 Reply
Steven_L_Intel1
Employee
670 Views
Do it the other way around. Have your setup.bat invoke the IDE (dfdev.exe or devenv.exe).
0 Kudos
Reply