FilesystemObject Question

Results 1 to 2 of 2

Thread: FilesystemObject Question

  1. #1
    besharah Guest

    Default FilesystemObject Question

    I needed to get the names of all the files in a particular folder<BR>I can get a reference to the parent folder of these files but when I want to access the Folder&#039s FILES COLLECTION I can&#039t get it to work.<BR><BR>I&#039ve tried:<BR><BR>set v_file = v_Folder.Files(0)<BR>set v_file = v_Folder.Files(1)<BR>set v_file = v_Folder.Files("Q14") --(using the file&#039s name)<BR><BR>Does anyone know the correct syntax for accessing a Folder&#039s <BR>Files collection. I could really use a hand.<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    11

    Default RE: FilesystemObject Question

    my documentation says its not possible to access Folder.Files as array. What you can use is <BR> for each v_file in v_Folder.Files<BR> &#039 do your job<BR> &#039 or copy into an array<BR> next<BR><BR>MfG Jens

Posting Permissions

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