[Coco] OS/9 Command to gain keyboard control from script

Stephen H. Fischer SFischer1 at Mindspring.com
Thu Apr 2 12:28:01 EDT 2015


Hi, 

Well, starting a program and for it to determine where it is I do in my archive program and doing that is just not simple. Perhaps there is a more elegant way to do it.

PWD and PXD we do have. But will they help?

I need to think a while on this, it takes some time for my mine to work on things two (2) decades in the past.

That was one of the first programs I wrote for OS-9 so I may have missed an easier way.

I did program called "Filldisk" and used it to set up all my boot disks and others to have the CMDS directory in the same location allowing disks to be swapped and programs
run without the usually needed CHX.

VDIR loads the files / folders in the current folder into the second ShellPlus variable set.

I am unsure if it will help.

SHF


----- Original Message ----- 
From: "Luis Antoniosi (CoCoDemus)" <retrocanada76 at gmail.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Thursday, April 02, 2015 6:44 AM
Subject: Re: [Coco] OS/9 Command to gain keyboard control from script


>I want to make a disk that will have a RUN script in its root that will run
> the /dX/cmds/program, no matter if you put the disk in /d0, /d1 or even
> just copied anywhere in the /dd hard drive.
> 
> In other words, a script that will get the current path and execute the
> relative executable in the ./CMDS/ folder. Is that possible ? I don't want
> to force the user to type CHX /d0/cmds or have to type the drive. I just
> want this:
> 
> cd /d0
> RUN
> 
> that's it. Is it ppossible ? How do I copy the current path to a variable ?
> 
> 
> 
> 
> Plus
> Luis Felipe Antoniosi



More information about the Coco mailing list