Results 1 to 4 of 4

Thread: Folder Overwriting

  1. #1

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211

    Question

    How would you make it so that a program created a folder and copied some files into it, then if you ran the program again, how would you tell it to not remake the folder but to overwrite the files inside of it. There's two files, test.ini, and test2.ini. Please help me.
    Thankz,
    WAcKeD

  2. #2
    Guest
    Here you go:

    Code:
    If Dir("C:\MyDir", vbDirectory) <> "" Then
    'overwrite files
    Else
    MkDir "C:\MyDir"
    End If

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Location
    Land of Entrapment
    Posts
    31
    Dang that's awfully easy. Don't you have to use the FileSystemObject?? I did exactly that type of thing a couple of months ago and that was the code I had to use. Just curious.

    Code overkill as usual.

  4. #4
    Guest
    You could use FileSystemObject, but that's easier.

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