VBS: finding the root drive.
Posted on 2004-04-13
I am putting together a pendrive with all my PuTTY settings and keys etc, there are 3 questions in this topic that should all be easy.
I know I can use VBS to create a shortcut, but I have a problem. When I plug the drive in, I do not know what the root letter will be (D:, E:, F: etc) and so cannot hard code a shortcut. I want to find the drive letter that the VBS script is running from. (Or better, and probably easier yet, the full path in case we are on a junction) is there an easy function to do this?