Root Drive

  • Thread starter Thread starter David W
  • Start date Start date
D

David W

How would you use

object.RootDrive

I am trying to determine what drive a specific file is installed on.
 
I got it with by inserting this procedure

Private Sub loadimage100(filespec)
Dim fs, f, s, t
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
s = UCase(f.Drive)
t = s & (filespec)

Me.Image100.Picture = t
End Sub

then call the procdure
 
Back
Top