So I need help copying one file to another system on a different network heres my code so far
I keep getting error messages like:hresult 0x800a004c (ctl_e_pathnotfound) and network name not found
if anyone could help thatd be great
Try Dim fso, WshNetwork Const OverwriteExisting = True WshNetwork = CreateObject("Wscript.Network") fso = CreateObject("Scripting.FileSystemObject") WshNetwork.mapnetworkdrive("x:", "\\10.72.14.14\web$", , "monitoring\caretaker", "caretaker") fso.CopyFile("C:\Users\Joe\Documents\From\joeTest.txt", "\\10.72.14.14\Web\joeTest.txt", OverwriteExisting) MessageBox.Show("Transfer Complete") Catch ex As Exception MessageBox.Show("error ..." & ex.Message, "error") End Try
I keep getting error messages like:hresult 0x800a004c (ctl_e_pathnotfound) and network name not found
if anyone could help thatd be great