Is there a method that VB uses to get the drive letter of the directory where the program files reside witout specifying it explicitly? :rolleyes:
PaulCC
0
Newbie Poster
Recommended Answers
Jump to PostIf I understand correctly. You can use the stored system variables:
Debug.Print Environ("PROGRAMFILES") 'OR if you want just the drive letter you can also use Debug.Print Environ("HOMEDRIVE") 'OR Debug.Print Environ("SYSTEMDRIVE")
Find a large list of these variables here and what they are all about:
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.