[Coco] [coco] moving files on bootup
Robert Gault
robert.gault at worldnet.att.net
Wed Jan 30 08:06:59 EST 2008
George Ramsower wrote:
> Willard,
>
> As I said, the files will be changing.
> This means some will be deleteted and some will be added or changed.
> Therefore, a script to copy files would be constantly changing and will
> require my attention. This is not an option. It has to be automatic.
> Since the ram disk will start empty,thte routine should just copy a
> directory to the ramdisk upon startup.
> A script to copy files will result in "Not Found" error 216 because
> they won't be in the directory the shell script calls on if the file is
> deleted and files added won't get copied.
> This will be a dynamic directory on the floppy and the desired routine
> to copy a directory on eacnh boot should find the files and copy them to
> the ram disk. The files will be different each time..
> Dsave would requre at least two steps, and it also inserts an undesired
> command , such as tmode - pause and tmode pause in the file it creates.
> I don't use -pause, so it requires another line to fix that.
> The reason I need this is for speed. The ram disk, as we all know, is a
> lot faster. This coco does not have a hard dirve and therefore, it SO
> SLOW when accessing a mass storage medium(floppy). So, I have to use the
> ramdisk for this application.
>
Dsave does not need two or more steps and I don't see your objection to
having a startup file line turning off pause. In any case, the latest
version of dsave has options to handle forced write if duplicate file
and turn off pausing. The syntax follows for the dsave in the NitrOS-9
package which can be used without NitrOS-9 in a 6809 system.
chd /d0/DATA; dsave -r -s40 /R0 ! shell
Put the above in the startup file and the contents of the DATA directory
on /D0 will be moved to /R0, no screen full pause and rewrite over a
file of the same name (not safe after a crash).
If you don't want to download NitrOS-9 just to get dsave, supply an
e-mail address and I can send the 6809 version to you.
More information about the Coco
mailing list