[Coco] How to permanently change NitrOS-9 directories within a script?

Robert Gault robert.gault at att.net
Thu May 9 08:16:21 EDT 2019


Bill,

That might work. I'm specifically interested in doing this with LevelIV2 so that some of the Tandy 
games that will run from hard drives can be started in the correct directories.

Robert

Bill Pierce via Coco wrote:
> Robert, when you run a script, you are also starting a temporary shell, so when the script ends, so does the shell and anything it created (chd, chx etc).
> In Shell+, there is a cmd, "PATH", which allows you to not only set the dirs, but to set multiple cmds dirs, but again, this will not work as a script as it's a shell cmd and that shell dies with the script.
> There is a "sysgo" (formally "cc3go") by Bob Devries that I use which checks the system dir (on startup) for a config file in which you can set dirs with the "PATH" cmd. since this is done from sysgo, it's run from the first (immortal) shell.
> That particular sysgo is in the repo as "sysgo_bd.asm" and "I think" on the disks in the cmds as "sysgo_bd". Just swap it with sysgo and create your "config.os9" file in /dd/sys and you got it.
> Warning, I think the "config.os9" file can only be one line so all cmds must fit in that line. The original "cc3go" version of this on RTSI and has the full documentation
>
>
>
> -----Original Message-----
> From: Robert Gault <robert.gault at att.net>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Sent: Wed, May 8, 2019 6:51 pm
> Subject: [Coco] How to permanently change NitrOS-9 directories within a script?
>
> Changing directories with chd, cd, chx, cx at the keyboard results in a permanent change. Using
> these commands within a script, such as startup, will give you a temporary change until the script
> ends. I'm sure at one time I knew how to use these commands within a script so that the directory
> changes did not revert when the script finished but I can't remember how nor find any discussion on
> the subject.
>
> Does anyone know how to do this?
>
> Robert
>


More information about the Coco mailing list