Home / Software / Computer programming / Looking into Folders using Visual Basic
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Looking into Folders using Visual Basic  (Read 1855 times)
Computer_Junkie
Guest
« 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!
IP logged
Computer_Junkie
Guest
« 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
IP logged
Pages: [1] - (Top) Print 
Home / Software / Computer programming / Looking into Folders using Visual Basic « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.105 seconds with 18 queries.