I am very new to VB an wondered if someone could point me in the right direction.
I am wanting to copy a file from one server to another. I have used to following code (rightly/wrongly). Can someone tell me where I went wrong.
Dim SourceFile, DestinationFile
SourceFile = "Server\folder\filename.txt"
DestinationFile = "Server2\Folder\filename.txt"
FileCopy SourceFile, DestinationFile
Any help will be grateful. Also, if the file already exists on Server2, I would want it to copy over it.
Thanks Lamaar75@hotmail.com
I am wanting to copy a file from one server to another. I have used to following code (rightly/wrongly). Can someone tell me where I went wrong.
Dim SourceFile, DestinationFile
SourceFile = "Server\folder\filename.txt"
DestinationFile = "Server2\Folder\filename.txt"
FileCopy SourceFile, DestinationFile
Any help will be grateful. Also, if the file already exists on Server2, I would want it to copy over it.
Thanks Lamaar75@hotmail.com