Determine First Local Drive

S

Sonny Maou

I've never encountered a user whose C drive was not the first local
drive... until today! Their C drive is a removable drive, the D drive is
a CD, and the E drive is the first local hard drive. Is there a function
or way to determine the first local hard drive on a system?
 
S

Sonny Maou

Christian said:
Hi Sonny,


i think your're looking for the system/boot-device.
if that's right you can use the Environ-settings:

Environ("HOMEDRIVE")

returns the system drive.

That's nice and simple! Thanks Christian! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top