home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
disk
/
directory
/
megad
/
rexx
/
markdemo.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-02-27
|
1KB
|
51 lines
/* Mark Demo
This file demonstrates the uses of
Mark, Dest, Lock, Child, Parent,
SelectItem and UnSelectItem.
Outside of this, this program is pretty much useless
*/
options results
ADDRESS MEGAD
dbug TRUE
/* open window to the Ram Disk: and Mark it */
Mark 'ram:'
/* display actual name of opened directory */
SAY result
/* save name for later */
rootname = result
/* User select the Marked directory's 'Dest'ination gadget */
Dest TRUE
/* Select the Marked directory's 'Lock' gadget */
Lock TRUE
/* move to the subdirectory */
child t
/* display actual name */
say result
/* save name for later */
childname = result
/* Mark the child directory */
mark "'"result"'"
/* User select the Marked directory's 'Dest'ination gadget */
Dest TRUE
/* Select the Marked directory's 'Lock' gadget */
Lock TRUE
/* Move to the parent directory */
parent
/* display actual name */
say result
/* Mark the Parent directory */
mark "'"result"'"
/* Flash the T directory 40 times */
DO 40
SelectItem t
UnSelectItem t
END
mark "'"childname"'"
/* close the child */
CloseMark
mark "'"rootname"'"
/* close the parent */
CloseMark