Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!mephisto!mcnc!rti!sas!sasjjr From: sasjjr@sas.UUCP (Jack Rouse) Newsgroups: comp.sys.amiga.tech Subject: Re: Execute -- Why does it always return -1? Keywords: amigados dos execute Message-ID: <1562@sas.UUCP> Date: 14 Feb 90 22:25:30 GMT References: <541@qusunb.queensu.CA> <929@tardis.Tymnet.COM> Reply-To: sasjjr@sas.UUCP (Jack Rouse) Organization: SAS Institute Inc, Cary NC Lines: 11 In article <929@tardis.Tymnet.COM> jms@tardis.Tymnet.COM (Joe Smith) writes: >Since the CLI structure is deleted when the Execute()ed programs are done, >I don't think you can get the return value of the last command. Apparently, since 1.2, the result code of the executed command is returned through the secondary result (i.e. IoErr()). This may not work with some Execute() patches (like "SetExecute" which came with WShell before 1.2 was available :-). -- Jack Rouse, SAS Institute Inc., Box 8000, Cary, NC 27512 USA USENET: mcnc!rti!sas!sasjjr TELCO : (919) 677-8000