home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
mued102b.zip
/
prnusers.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-01-20
|
482b
|
25 lines
/* MUEd/PM User List Script */
userCount = MED_QueryUserCount()
PrnFile = 'USER.LST'
Say 'Creating user list for printer. . .'
Do i = 0 to userCount - 1
Call LineOut PrnFile,,
Left(i,5)' 'Left(MED_QueryName(i),25)' 'MED_QueryPriviledge(i)
End
Call Stream PrnFile, 'c', 'close'
Say 'Copying list to printer. . .'
dosCmd = 'copy 'PrnFile' PRN'
dosCmd
dosCmd = 'del 'PrnFile
dosCmd
Say
Say 'Click SEND to Continue. . .'
Pull .
Exit 0