home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-