Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!hp-sdd.UUCP!mdavis From: mdavis@hp-sdd.UUCP.UUCP Newsgroups: comp.sys.apple Subject: Set the prefix Message-ID: <8704260725.AA01125@crash.CTS.COM> Date: Sun, 26-Apr-87 07:11:38 EDT Article-I.D.: crash.8704260725.AA01125 Posted: Sun Apr 26 07:11:38 1987 Date-Received: Wed, 29-Apr-87 01:50:27 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: hp-sdd!pnet01!pro-sol!mdavis@AMSAA.arpa Distribution: world Organization: The ARPA Internet Lines: 35 ------ Forwarded Message ------ From: Michael Alan Wertheim Subject: Need help with MLI I'm having an awful time trying to get the MLI's OPEN command to work. When I give it a pathname that begins with a "/" and a prefix, it works fine, but when I give it just a filename, hoping it will tack on the prefix itself, it returns a $40 -- "Pathname has invalid syntax". Any help or comments would be appreciated. Michael Wertheim Carnegie Mellon University Pittsburgh, PA Arpa: mw22@andrew.cmu.edu Bitnet: mw22@cmuccvma UUCP: ...!{seismo, ucbvax, harvard}!andrew.cmu.edu!mw22# ------------ The internal ProDOS prefix must be set before using any MLI file-related commands with pathnames not fully qualified ("that don't start with a /"). This is BASIC.SYSTEM's fault. It purposefully nullfies the ProDOS prefix when it boots up. Here's an easy way to solve the problem without adding one byte to your assembly code: 10 PRINT CHR$(4)"PREFIX" 20 INPUT PREFIX$ 30 PRINT CHR$(4)"PREFIX"PREFIX$ --Morgan UUCP: [ ihnp4 akgua hplabs!hp-sdd sdcsvax nosc ] !crash!pnet01!pro-sol!mdavis ARPA: crash!pnet01!pro-sol!mdavis@nosc INET: mdavis@pro-sol.CTS.COM