🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2246

MS-Fortran: filename from cmd line?

#2246
From: David White
Date: Thu, 21 Jan 1993 22:31
22 lines
1385 bytes
I recently upgraded to MS-Fortran 5.1, which can generate Windows
programs. 

I wish to associate the input files for my Fortran simulation with 
the Windows .EXE file, AND get the input filename into the 
simulation for character manipulation to generate corresponding 
output filenames. 

Eg, associate *.INP with SIMULATE.EXE. Now I want to be able to
double-click on XYZ.INP (in FileManager) to run SIMULATE, opening
XYZ.INP as input and generating XYZ.OUT for output. 

My local Microsoft support provided information about accessing
the PSP or PDB at the start of the app, and a Windows call:
GetCurrentPDB(). Before looking into something that seems rather
complex to me, has anyone solved this one already?

david white                           davidw@auck.irl.cri.nz

--
 david white    (engineer, Goon fan & son of my Dad)
 Internet davidw@auck.irl.cri.nz  Fax +64 9 443-4737
Technical Details
Message-ID: <davidw.727655487@auck.irl.cri.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!zephyr.grace.cri.nz!totara.auck.irl.cri.nz!davidw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!zephyr.grace.cri.nz!totara.auck.irl.cri.nz!davidw
From: davidw@auck.irl.cri.nz (David White)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: MS-Fortran: filename from cmd line?
Date: 21 Jan 93 22:31:27 GMT
Organization: Industrial Research Ltd, Auckland, New Zealand
Lines: 22
Message-ID: <davidw.727655487@auck.irl.cri.nz>
NNTP-Posting-Host: totara.auck.irl.cri.nz
Keywords: fortran, command line, filename