Guest Posted July 2, 2004 Share Posted July 2, 2004 Im trying to get a file to overwrite another file in another location... How do you do this :happy: Link to comment Share on other sites More sharing options...
0 hash Posted July 3, 2004 Share Posted July 3, 2004 the easiest way of doing it is to impliemnt a routuine like this : if dir(PATH TO FILE, vbNormal) <> "" then kill PATHJ TO FILE end if filecopy source, destination that deletes the file if it exists, and then copies it alternatively, i THINK (but am not sure) that the File System Object has a file copy function that will overwrite a file... but that requires adding another dependancy to your project (ms scripting runtime reference (not object)) also, there are shell api declarations that would do it, but thats getting too difficult for such a simple thing Link to comment Share on other sites More sharing options...
0 anthonycara Posted July 4, 2004 Share Posted July 4, 2004 or you could use shell calls....but hash's idea should work Link to comment Share on other sites More sharing options...
Question
Guest
Im trying to get a file to overwrite another file in another location... How do you do this :happy:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts