Results 1 to 3 of 3

Thread: [2005] Directory.GetFiles with spaces in folder name?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    [2005] Directory.GetFiles with spaces in folder name?

    for some reason this isn't working, but it works if i try it without spaces in the folder name. (i cant change the folder structure)

    Code:
            Dim FileList As String() = Directory.GetFiles("E:\Downloads\Data Legal Agreements\")
            Dim FileName As String
    
            For Each FileName In FileList
    
                Whatever(FileName)
    
            Next

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Directory.GetFiles with spaces in folder name?

    In what way isnt it working?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: [2005] Directory.GetFiles with spaces in folder name?

    /owned



    for some reason, my true account name didn't have access to my own box.


    thanks!
    Last edited by texas; Jun 17th, 2008 at 02:25 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