English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 27 July 2015, 11:31   #1
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,762
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:
Thorham is offline  
Old 27 July 2015, 12:12   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,001
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.
thomas is online now  
Old 27 July 2015, 12:20   #3
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,762
That's quite clear, thanks
Thorham is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:22.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08367 seconds with 13 queries