Results 1 to 2 of 2

Thread: Place a file in EVERY folder/directory

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    1

    Post

    how do i do it????
    Using VB 5...

  2. #2
    New Member
    Join Date
    Jan 1999
    Location
    ITALY
    Posts
    12

    Post

    With this code you can know the name of every directory on "c:\", and using an API called "Copyfile" you can copy a file in every directory on your hard disk ( using a "Do Loop").

    Code:
    MyPath = "c:\"
    Loop
    MyName = Dir(MyPath, vbDirectory)' Searches fo all dyrectories name
    Copyfile API here
    Do While MyName <> ""

    I hope this can help you.


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