27 July 2015, 11:31 | #1 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,927
|
Matching device names with volume names.
If I have a device name and I want the matching volume name (or vica versa, see example below), do I have to mess around with the DosList?
Example: HD0: finds Workbench: Workbench: finds HD0: |
27 July 2015, 12:12 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,045
|
It depends a bit on the purpose of that all. If you want to make a list of device names for example, then you have to traverse the dos list anyway. Then it is not a big deal to traverse it again to find the corresponding volume names.
If you want to do it just once, well for the first case you could just Lock() the device name and Examine() it to find the volume name. For the second case I don't remember if there is any function which returns the device name. It's probably up to the dos list again... To match a device node with the corresponding volume node in the dos list you can use the dol_Task field. |
27 July 2015, 12:20 | #3 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,927
|
That's quite clear, thanks
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why chip names?? | amiga_Forever | Nostalgia & memories | 30 | 07 September 2016 01:47 |
Sensible volume names for ADF as HD | Leffmann | request.UAE Wishlist | 5 | 27 August 2014 21:25 |
What the hell were those names? | nzo | request.Demos | 4 | 26 September 2013 14:50 |
Where did your users names come from? | Freakyweakywoo | Nostalgia & memories | 300 | 22 December 2012 05:54 |
Computers and their names | Amiga1992 | Nostalgia & memories | 55 | 03 October 2001 00:40 |
|
|