-
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.
-
Here you go:
Code:
If Dir("C:\MyDir", vbDirectory) <> "" Then
'overwrite files
Else
MkDir "C:\MyDir"
End If
-
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.
-
You could use FileSystemObject, but that's easier.