home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5249 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!zephyr.grace.cri.nz!totara.auck.irl.cri.nz!davidw
  2. From: davidw@auck.irl.cri.nz (David White)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: MS-Fortran: filename from cmd line?
  5. Date: 21 Jan 93 22:31:27 GMT
  6. Organization: Industrial Research Ltd, Auckland, New Zealand
  7. Lines: 22
  8. Message-ID: <davidw.727655487@auck.irl.cri.nz>
  9. NNTP-Posting-Host: totara.auck.irl.cri.nz
  10. Keywords: fortran, command line, filename
  11.  
  12. I recently upgraded to MS-Fortran 5.1, which can generate Windows
  13. programs. 
  14.  
  15. I wish to associate the input files for my Fortran simulation with 
  16. the Windows .EXE file, AND get the input filename into the 
  17. simulation for character manipulation to generate corresponding 
  18. output filenames. 
  19.  
  20. Eg, associate *.INP with SIMULATE.EXE. Now I want to be able to
  21. double-click on XYZ.INP (in FileManager) to run SIMULATE, opening
  22. XYZ.INP as input and generating XYZ.OUT for output. 
  23.  
  24. My local Microsoft support provided information about accessing
  25. the PSP or PDB at the start of the app, and a Windows call:
  26. GetCurrentPDB(). Before looking into something that seems rather
  27. complex to me, has anyone solved this one already?
  28.  
  29. david white                           davidw@auck.irl.cri.nz
  30.  
  31. --
  32.  david white    (engineer, Goon fan & son of my Dad)
  33.  Internet davidw@auck.irl.cri.nz  Fax +64 9 443-4737
  34.