I found a useful script at Refer to/select a drive based only on its label? (i.e., not the drive letter) and can run it either in a cmd.exe window or under cygwin to find drive letters on my computer.
What I can’t figure out is how to get the returned string (e.g. E:) to show up in my R console. If I run system('cscript /nologo DriveFromLabel.vbs label',intern=TRUE) I get character(0) as the result.
Is there some switch to make the result of this comment in a cmd.exe call visible to R, or is there some way to create a script that calls cygwin and returns the cscript result to R?
This works for me