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!

File logical names.

Status
Not open for further replies.

Sanibel

Technical User
Nov 15, 2001
73
GB
I am in the process of converting some Fortran legacy code from OpenVMS into Visual Fortran.
OpenVMS uses logical names to identify files. Using this method you can open a file in Fortran with the logical name
and define the actual file name in a command procedure (Bat file) when you run the program. Using this method you can change the names of any input and output files in the command procedure without having to recompile and relink the source code.
Does anybody know if a similar facility is available using NT bat files and if so how I can implement it.

Thanks
 
At a guess, it is something to do with symbolic links. That facility is available on VMS and Unix but not on NT. However, what you can do is to have fixed filenames and use the batch file to

1) copy the input files to the specified filename
2) rename the output files to the desired filename
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top