Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!ames!sdcsvax!ucbvax!UKANVAX.BITNET!SLOANE From: SLOANE@UKANVAX.BITNET (BOB) Newsgroups: comp.os.vms Subject: Calling .COM files from FORTRAN Message-ID: <8705220450.AA12659@ucbvax.Berkeley.EDU> Date: Thu, 21-May-87 12:34:00 EDT Article-I.D.: ucbvax.8705220450.AA12659 Posted: Thu May 21 12:34:00 1987 Date-Received: Sat, 23-May-87 14:28:27 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 13 I am trying to find a way to execute a .COM or .EXE file from within a FORTRAN program so the the file is executed from within the same process context as the FORTRAN program. Specifically, I would like to be able to create a .COM file that contains a $ SET COMMAND foo, defines some logicals, and then execute the .COM file to define the commands and logicals. LIB$SPAWN appears to create a new process, and any commands/logicals/symbols defined go away when the .COM file terminates. Bob Sloane University of Kansas Computer Center (913) 864-4291 SLOANE@UKANVAX on BITNET