index   prev   next RISC OS Notes

Obey files

lots of examples in ADFS::HardDisc5.$.PROGRAMZ.Obeys

# obey$dir is set to

the directory containing the file being run see example in Obeys ADFS::HardDisc5.$.PROGRAMZ.Obeys

# run obey file 1

set CSD (^ shft tab with mouse pointer) open TaskWindow run filename

# run obey file 2

Use TaskExec instead of obey files - &FD7

# run obey file 3 ????

set Obey$Dir when run to dir containing the obey file You can't use this variable in a BASIC program, so save it in another variable. eg Set Otherfonts$Dir

# abort run of obey file

If you want to prevent an obey running to the end you can put a bad command in it. eg echo * hello * missing echo * world * gives:- * hello * file "missing" not found It does not execute the 3rd line.

© JR 2013