ArcDir
lister add
The lister addstem command allows you to add far more information and
is more flexible than the lister add command, and is discussed below.
Here we'll just see what the lister add command can do.
The first difference between the two commands, is that with the lister add
command you must specify all parameters before an entry is added. So on the
command line you must include:
Example:
/* ListerAdd.dopus5 */
options results
address 'DOPUS.1'
lister new mode name
lister set handle display name size date protect comment
lister refresh handle full
handle = result /* Store the handle */
call setclip('Lister.test',handle)
exit
Run the above example, then click on one of the buttons below to add an
entry.
lister add handle 'Directory1' 2 '1' 1000 rwed 'A Directory'
lister add handle 'File1' 546 '-1' 60000 rwd 'A File'
lister add handle 'Directory2' 1234 '2' 500000 d 'in assign colour'
lister add handle 'File2' 64554 '-2' 734398 rw 'in device colour'
lister add handle 'Directory3' 54654 '3' 87657 hwd 'in bold (link)'
lister add handle 'File3' 245 '-3' 87656 hsparwed 'in bold (link)'
lister add handle 'Directory4' 45 '4' 435435 har 'in assign colour and bold'
lister add handle 'File4' 436565 '-4' 76567 pwed 'in device colour and bold'
Click on this button to close the lister.
This is equivalent to the AddFile command in Opus v4.
|