ARexx (6/23)

From:taoberly
Date:13 Jul 2001 at 02:05:44
Subject:Re: Converting disk icon names to DOS devices

Rolf and Neil,

--- In arexx@y..., "Rolf Max Rotvel" <rotvel@m...> wrote:
> On 12 Jul 2001, at 19:46, taoberly@m... wrote:
>
> > "Workbench" becomes "DH0:"
> > "Empty" becomes "DF0:"
> > "Ram Disk" becomes "RAM:"
> >
> > etc., etc. I can do this by running the info command and parsing it
> > to death, but think there should be a more straightforward (and
> > faster) way. Does anybody have any advice?
>
> My Amiga is dead at the moment so this is from memory:
>
> Have a look at the examinedt() function from the datatypes.library.
> I'm pretty sure one of the fields is the full path of the item
> examined using device names.

I don't have any programming documentation besides what shipped with
OS 3.1/3.5/3.9, so am not sure where else I could go to look it up.
If I ever decided to upload the script to Aminet, though, it would be
desirable to use an OS library.

--- In arexx@y..., "Neil Bothwick" <neil@w...> wrote:
> taoberly said,
>
> > I asked this question on the OS 3.9 mailing list, but didn't get much
> > of a response. I am working on an Arexx script that reorganizes
> > Workbench disk icons (actually any icons on the Workbench) into a
> > preprogrammed order after bootup. But I have a need to convert icon
> > names to DOS device names, so
>
> > "Workbench" becomes "DH0:"
>
> The realname() function in rmh.library does this.

That'll work.

Thanks guys,

Todd

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of
VeriSign's FREE Guide "Securing Your Web Site for Business." Get it now!
http://www.verisign.com/cgi-bin/go.cgi?a=n094442340008000
http://us.click.yahoo.com/6lIgYB/IWxCAA/yigFAA/saFolB/TM
---------------------------------------------------------------------~->

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/