home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
filemanager
/
director_1
/
!Director
/
Utils
/
!ReadMe
next >
Wrap
Text File
|
1995-07-24
|
4KB
|
140 lines
Utilities
=========
This directory provides a few utilities that are useful in conjunction with
Director.
SWI Module
==========
The SWI module is (C) Jens H. Ovesen 1993 and is distributed with Director
with permission.
This provides a single * command for running SWIs from the command line.
Syntax
------
*SWI <expression> [<expression>]^ [TO <variable>[ <variable>]^ [;<variable>]]
<expression> is a string that is OS_GSTrans'ed before it's read. If it has ""
around it or it can't be read as a number, it's expected to be a string.
Otherwise it's read as a number value.
<variable> is a system variable. If a '$' is found in <variable>, the
register is expected to be a pointer to a string, and the system variable
will be created as a String type from that register. Otherwise it will be
created as a Number type.
Please be aware that the machine may hang up if you don't know what you're
doing.
Examples
--------
*SWI "OS_ReadLine" "12345678901" 10 32 126 to input$ length
*SWI XOS_CLI "cat $" to ;flags
*SWI <my$swi> <my$param> to my$output ; flags
ExpandMenu
==========
This is for converting Pinboard+ menu files to Director menu files. See the
main manual for more details.
RunFilerAc
==========
This is for starting off Filer_Action tasks. It is useful if you want to do
actions to files from the MenuMenu.
See the example menus for details.
IfPodule
========
Detects presence of podules
Syntax
------
1) *IfPodule <podule> <command>
<command> executed if <podule> installed
2) *IfPodule <podule> <command_1> <command_2>
<command_1> executed if <podule> installed
<command_2> executed if not installed
3) *IfPodule <podule> <command> <param_1> <param_2>
<command> <param_1> executed if <podule> installed
<command> <param_2> executed if not installed
where <podule> can be:
1) a (partial) podule name, or
2) a 4-bit simple podule type
3) a 32-bit ID with the product type in the low 16 bits and
the manufacturer in the top 16 bits
Examples
--------
*IfPodule SCSI "Echo SCSI installed"
*IfPodule Fax "Filer_Run !FaxManager" "Echo No FaxPack present"
*IfPodule LaserDirect "Set LD$Present" yes no
*IfPodule &1100A4 "Echo Acorn Ether3 installed"
*IfPodule 15 "Echo Nick’s Magic podule is available"
IfThereIs
=========
Detects presence of files or directories.
Syntax
------
*IfThereIs [-Not] [ -File | -Dir | -App | -Image ] [-x] <object>
<‘yes’ command> [<‘no’ command>]
| <command> <‘yes’ param> <‘no’ param>
1) *IfThereIs [options] <object> <command>
<command> executed if <object> found
2) *IfThereIs [options] <object> <command_1> <command_2>
<command_1> executed if <object> found
<command_2> executed if not found
3) *IfThereIs [options] <object> <command> <param_1> <param_2>
<command> <param_1> executed if <object> found
<command> <param_2> executed if not found
-x makes IfThereIs take the no option if any OS errors reported during the
testing.
Examples
--------
*IfThereIs -App Apps:!ArtWorks "Echo ArtWorks installed"
*IfThereIs <Obey$Dir>.!Run "<Obey$Dir>.!Run" "Echo No !Run file"
*IfThereIs Resources:$.Apps.!Help "Set Help$Present" yes no
*IfThereIs -Image ADFS::0.$ "Echo Dos Disc: " yes no
DriveName
=========
This is used for finding the name of a drive from its drive spec.
Syntax
------
Syntax: *DriveName <varname> <drivespec>
Examples
--------
*DriveName Name ADFS::4
*DriveName Name ADFS::4.$
*DriveName Name ADFS::4.$.!Boot.Library
All of these set the system variable Name to the name of the drive
*Show Name
Name : HardDisc4