Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Looking into Folders using Visual Basic  (Read 9228 times)

0 Members and 1 Guest are viewing this topic.

Computer_Junkie

  • Guest
Looking into Folders using Visual Basic
« 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!

Computer_Junkie

  • Guest
Re: Looking into Folders using Visual Basic
« Reply #1 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