Results 1 to 2 of 2

Thread: transferring files using the filesystem object

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    75

    transferring files using the filesystem object

    How can i transfer a file from one folder to the other using the file system object, the follwing can be used to get to the files in the folder and loop through them, but i need to get the files or at least a copy of the files and pass them to another folder.

    This is what i've got:

    Private Sub SetupAppFolder()
    Dim fso As New FileSystemObject
    Dim fldr As Folder
    Dim fl As File

    Set fldr = fso.getfolder("C:wherever")

    For Each fl In fldr.Files
    AddFileToStorage "pass the file here"
    Next fl
    End Sub

    Where AddFileToStorage is another sub i want to pass the file to

    Thanks.

  2. #2
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

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