home *** CD-ROM | disk | FTP | other *** search
- /*
-
- $VER: check.dopus5 1.0 (10.07.96)
-
- Example of an 'arexx module'. This program adds a "Check" command to Opus,
- and also installs a PopUpExtension to add a 'Check' item to disk icons.
- When the user selects the Check option, DiskSalv is automatically
- started in Check mode.
-
- This program must go in the DOpus5:Modules directory. It requires
- DiskSalv v3 by Dave Haynie to be in the specified path.
-
- */
-
- /* Change this for where DiskSalv is located on your system */
- disksalv = 'SYS:Tools/DiskSalv'
-
- parse arg portname ' ' function ' ' source ' ' dest ' ' device
- address value portname
- options results
-
- /* Initialise */
-
- if function='init' then do
- dopus command "Check" program "check" private ext 'Check...' type disk
- exit
- end
-
-
- /* Check function */
-
- if function='Check' then do
- address command 'run >nil: <nil:' disksalv from device 'mode=check'
- exit
- end
-