How can I Access a volume by name?

Lennox, I’m afraid I can’t write your program for you. I’ve given you a function that will return a path for a given volume name, it returns H:\ because that is the drive that is where “LSJ FILES” is mounted in the image you linked above. If that volume ends up on another drive letter, that letter will be returned. Isn’t that what you wanted?

Hi Julian,

Thanks, but I did not want you to write the program for me.

What I wanted was to know "How do I use “root as FolderItem?” as mentioned above, but you went ahead and provided some code which I was not familiar with, I did not even know what that debugger thing was for. Thanks for your efforts still, I learnt something in the process.

So the question remains How do I use "root as FolderItem in Protected Function GetVolumeName(root as FolderItem) As String?

No sweat. Thanks again.

Lennox

I should have read the post a bit closer instead of answering the original question. Taken from the code you posted in 2015.

Dim i As Integer Dim s As String For i = 0 To VolumeCount - 1 s = GetVolumeName(Volume(i)) system.DebugLog(s) Next i

Fantastic!!! Thanks Julian.
Works just as I wanted.
Thanks again.
Lennox

Sic !