How to set and use a IIGS prefix?

3 posts / 0 new
Last post
Offline
Last seen: 11 hours 59 min ago
Joined: Oct 27 2020 - 02:21
Posts: 31
How to set and use a IIGS prefix?

How do I set a pathname to an available IIGS prefix and how do I use that numeric prefix to access that path? I'm trying to do this within the text shell environment in ORCA. 

Can this be done within that environment, or must it be done perhaps in ProDOS 8. What is/are the commands to do so. 

Microsoft CoPilot suggests...

PREFIX #1, "/MYDIRECTORY"  to set a prefix

LOAD #1, "MYFILE"                      to access a file in that directory  

I thought the idea of prefixes was to be able to navigate to a long path name by simply typing in something like 'prefix (the number of the prefix)' to avoid needing to type 

long pathnames. 

 

Using the CoPilot approach above resutls in "Unknown parameters on line" error message. Does anyone know how to both set an available prefix number to a pathname and what the syntax is to access that pathname using a prefix number?

 

 

Offline
Last seen: 6 hours 6 min ago
Joined: Jun 18 2010 - 13:54
Posts: 811
The prefix command in ProDOS

The prefix command in ProDOS just sets the default path. It is followed by the desired path like PREFIX /MYDIR. All commands after that work on the specified directory.   

The path can also be set using slot and drive numbers like DOS 3.3. Such as PREFIX, S7,D1.  

Offline
Last seen: 11 hours 59 min ago
Joined: Oct 27 2020 - 02:21
Posts: 31
Solution

The solution to the how to set and use a IIGS prefix problem is in the attached file. 

 

Plain text iconIIGS access by prefix.txt

Log in or register to post comments