[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: where can i download the various OS's for my GS?



limtc <thyechean@gmail.com> wrote:

> More questions:
> 
> - can you do a mass delete, etc, using wildcards or other means?

Not with standard features provided by BASIC.SYSTEM. It doesn't support
wildcards.

> - can you rename disk prefix?

Do you mean the volume name of the disk? Yes.

RENAME /OLDNAME,/NEWNAME

The slash at the beginning identifies it as a complete pathname, which
starts with the volume name.

"Prefix" has a special meaning in ProDOS. It is actually a command to
BASIC.SYSTEM and a call to the ProDOS kernel which specifies a prefix
which is automatically added to the front of a partial pathname (a
filename or pathname which doesn't start with a slash). This is useful
if you are working with subdirectories.

For example, if you have a disk called PROGRAMS with a subdirectory
DEMOS and that subdirectory contains several files you want to work
with, then you can do this:

PREFIX /PROGRAMS/DEMOS

and then just use the filename for each file in the DEMOS subdirectory,
e.g.

RUN DEMO1

will run /PROGRAMS/DEMOS/DEMO1

Once you've set a prefix, it will remain active until you change it. You
can clear the prefix using the command:

PREFIX /

This will revert to no prefix, or using the last accessed slot and
drive.

PREFIX with no parameters will print the current prefix, and if you
haven't set one, it will print the name of the volume in the current
slot and drive (after reading it from the disk).

-- 
David Empson
dempson@actrix.gen.nz