-
FileList Box
To all Wizards, I solicit your wisdom,
When you have a subst'd drive And you are using the following VB dialog boxes for the following:
Drive Box, Directory Box, File Box, - I onlying get information in the first two boxes. But when I use a NON subst'd drive, say the "C:\" harddrive - I also get filename information in the file list box - but if it is a subst'd drive, my file list box is empty! but I know that there is many files there! Can any one help out with a work around.
VBFingers.
RSVP Please.
-
Re: FileList Box
I was unable to replicate your problem, are you sure you are using the Drive/Dir and File Lists Correctly?
private Sub Dir1_Change()
File1 = Dir1
End Sub
private Sub Drive1_Change()
Dir1 = Drive1
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Re: FileList Box
Sometimes the Drive letter for Mapped Drives ( that's what your subst'd drive means, i guess?) also includes the server/machine name and the Folder like
F: [//server/path]
So just take the first 2 chars: Left$(Drive1.Drive,2) or Look for ":" and take the left portion or USe api to get the drive letter "GetDrives" or some such call.. i dont recollect ofhand
RK