Does anyone know how to write a Visual Basic program that will print out the drive or device name of a file, given the full path name?
Does anyone know how to write a Visual Basic program that will print out the drive or device name of a file, given the full path name?
Try the forum's at www.vbexplorer.com
You're more likely to get a better answer there.
www.vbforums.com
you will get a response within minutes.
hope this helps
maybe this helps too:
Function DriverLetter(FilePath as string)
driverletter = mid(FilePath,0,3) 'only the first 3 digits , like"c:\"
end function
Last edited by The-Guy; 07-03-2002 at 09:34 AM.