Computer Hope

Software => Computer programming => Topic started by: Computer_Junkie on August 04, 2004, 12:48:06 PM

Title: Looking into Folders using Visual Basic
Post by: Computer_Junkie on August 04, 2004, 12:48:06 PM
hey everyone,

is there a way in Visual Basic(VB6) to automatically look into a folder and add a filename to a listbox? or part of a filename(e.g. c:\ver_25, but the program would automatically extract only the 25 when you start the program)

Any Help is greatly appreciated, thanks!
Title: Re: Looking into Folders using Visual Basic
Post by: Computer_Junkie on August 05, 2004, 07:44:00 AM
i found out how to do it, you have to declare a variable as type "folder" then use the "GetFolder" method to get the folder. You can even get the subfolders by using the ".subfolder" method.

Thanks anyways everyone