home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
util
/
wb
/
WBInfo.readme
< prev
next >
Wrap
Text File
|
1996-01-05
|
2KB
|
54 lines
Short: Bring up WB info requester from CLI window
Author: bsimpson@mcs.dundee.ac.uk (Bruce M. Simpson)
Uploader: bsimpson@mcs.dundee.ac.uk (Bruce M. Simpson)
Type: util/wb
This is a simple proglet to bring up the Workbench Information requester
from the CLI. I wrote this because I fed up of getting away from the
CLI just to 'get info' on something - hence this tiny utility.
It requires V39 workbench.library (which generally means Workbench 3 or
above) and won't operate if Workbench isn't currently running - which is a
shame really... :(
It takes a single argument, and won't do any fancy stuff e.g. pattern
matching, multiple arguments, and opens the window on the default public
screen. I didn't really need these so I didn't put them in. But I may
well do the public screen thing sometime, if only to bring up a proper WB
info requester from a shell running on the DirOpus 4.x public screen.
Caveats:
Won't back out correctly if you try to obtain information on a non-
filesystem device, no memory lost, but funny lock behaviour. Doesn't seem
to harm the system though - but 'TurboList' generates spurious bad block
errors when run. I 'CD' back and it's fine - it seems to have CD'd to the
SYS: assignment, probably due to a NULL pr_CurrentDir.
This appears to be the only bug, apart from the fact that if you ask it to
obtain info on an object, and the argument ends in '/', it won't work - I'm
just using PathPart()/FilePart() and couldn't be bothered fixing it.
It's 100% pure and reentrant. Make it resident NOW... (684 bytes of code)
Enjoy,
__ ___ _
|__) _ _ (__ . ( _ | K is for Killer WWW Platform.
|__) |~ (_) (_ (- ___) | /\/\ P _) (_) |\| | L is for LightWave.
¯
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
371 208 43.9% 13-Sep-95 23:23:22 +SCOPTIONS
720 505 29.8% 13-Sep-95 23:24:40 +WBInfo
4685 1808 61.4% 13-Sep-95 23:24:46 +wbinfo.c
1324 817 38.2% 13-Sep-95 23:24:38 +wbinfo.o
1781 958 46.2% 13-Sep-95 23:29:00 +WBInfo.readme
-------- ------- ----- --------- --------
8881 4296 51.6% 10-Dec-95 23:03:24 5 files