|
-
Sep 14th, 2000, 08:17 PM
#1
Thread Starter
Addicted Member
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.
-
Sep 14th, 2000, 08:46 PM
#2
Here you go:
Code:
If Dir("C:\MyDir", vbDirectory) <> "" Then
'overwrite files
Else
MkDir "C:\MyDir"
End If
-
Sep 14th, 2000, 09:11 PM
#3
Junior Member
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.
-
Sep 15th, 2000, 02:43 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|