Copy Files from one directory to another
-
Hi, I have one directory eith files and i want to copy one filr from that directory to another. For that i used the following code but it doesn't work. Import System.IO Filecopy(sourcepath, destinationpath) Please let me know, here additionally i need to add any code... Thanks in advance
Regards, Samson
-
Hi, I have one directory eith files and i want to copy one filr from that directory to another. For that i used the following code but it doesn't work. Import System.IO Filecopy(sourcepath, destinationpath) Please let me know, here additionally i need to add any code... Thanks in advance
Regards, Samson
Well, where did you get this syntax from ? File.Copy will work. Filecopy will not, for obvious reasons.
Christian Graus Driven to the arms of OSX by Vista.
-
Well, where did you get this syntax from ? File.Copy will work. Filecopy will not, for obvious reasons.
Christian Graus Driven to the arms of OSX by Vista.
-
I am not sure that File.Copy will create directories that do not exist. Otherwise, if your paths exist, it should work fine ( of course, assuming the dest file does not exist, if it does, you need to pass true as the third param )
Christian Graus Driven to the arms of OSX by Vista.