How can I set default volume and folder (directory) under ProDOS?
The ProDOS PREFIX command followed by a pathname lets you set the default volume and folder (or directory) by name– i.e. you set the default pathname prefix. For example, PREFIX /NARF or, in a BASIC program 100 PRINT CHR$(4)”PREFIX /NARF” tells your computer to find the ProDOS volume (e.g. disk, hard disk partition, etc.) named “NARF” and, once it is found, set the current default directory to /NARF/– i.e. the main or “root” directory of the volume named “NARF”. From then on, commands like CAT, RUN GRAFIX, BLOAD STARTPIC, etc. automatically reference /NARF’s main directory. If you enter CAT PAINTERS/, ProDOS will go to the PAINTERS/ folder on /NARF and display a CATALOG of the folder’s contents. If you move your /NARF diskette to a different drive and do a CAT, ProDOS will scan your drives to find /NARF and do the CAT. If you remove /NARF completely and do a CAT, ProDOS will say there is a “PATH NOT FOUND” error. Naturally, you can set the default prefix to a specific folder. For exa