View Single Post
Old 21 February 2018, 18:30   #2148
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Good idea, thank you Gorf!

I could make a Lock() on RAM: and then use NameFromLock() to get the volume name in the Init() part of icon.library. After storing that volume name I could compare it later with the path names for Disk.info instead of comparing with "ram " or "RamD".

Nevertheless, I'm not sure anymore if I should support random volume names for RAM: like "Memory", because it makes the name comparisn even more complex since it would need exact compares to distinguish between "Memory" and "Memories" for example. I can not just test for "Memo". And I have to do these checks 3 5 times in my code. Too much extra code just for kolla ...

Last edited by PeterK; 22 February 2018 at 20:59.
PeterK is offline  
 
Page generated in 0.17800 seconds with 11 queries