Results 1 to 4 of 4

Thread: filepaths

  1. #1

    Thread Starter
    Addicted Member njnets's Avatar
    Join Date
    Aug 2002
    Posts
    206

    filepaths

    Hi,

    How do I get the full filepaths of files in a specified folder and put them into a textbox or listbox?

  2. #2
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    you could use the dir() function on the folder and then add them with the files path!!!!
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  3. #3

    Thread Starter
    Addicted Member njnets's Avatar
    Join Date
    Aug 2002
    Posts
    206
    any examples?

  4. #4
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    VB Code:
    1. Dim strPath as String
    2. Dim strFile as String
    3. strPath = "C:\Windows\"
    4.  
    5. strFile = Dir$(strPath) 'Get the first file
    6. Do While Len(strFile) > 0
    7.     List1.AddItem strPath & strFile
    8.     strFile = Dir$   'Get the next file
    9. Loop
    Last edited by ae_jester; Dec 12th, 2002 at 08:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width