Running xp sp2 on both machines
I want a script to copy a folder from the network to a local drive.
This code works: (copy local to network)
Set FSO =CreateObject("scripting.FileSystemObject")
FSO.CopyFolder "c:\Backup" ,"\\Pta-srv\sjvwebsite", True
MsgBox"BackUp completed, Goodbye", vbInformation, "Script Informer"
This code generates an error: (copy network to local)
Set FSO =CreateObject("scripting.FileSystemObject")
FSO.CopyFolder "\\Pta-srv\sjvwebsite", "c:\Backup" ,True
MsgBox"BackUp completed, Goodbye", vbInformation, "Script Informer"
I think I looked at 90% of the posts and from what I see the code should work. I get "Invalaid Procedure Call or Argument"
I tried drive mapping and using IP address (as I found in the posts) still no luck except with IP address I got as far as "permission denied".
I'm sure I'm missing somethng very basic!
Thanks for some help.
I want a script to copy a folder from the network to a local drive.
This code works: (copy local to network)
Set FSO =CreateObject("scripting.FileSystemObject")
FSO.CopyFolder "c:\Backup" ,"\\Pta-srv\sjvwebsite", True
MsgBox"BackUp completed, Goodbye", vbInformation, "Script Informer"
This code generates an error: (copy network to local)
Set FSO =CreateObject("scripting.FileSystemObject")
FSO.CopyFolder "\\Pta-srv\sjvwebsite", "c:\Backup" ,True
MsgBox"BackUp completed, Goodbye", vbInformation, "Script Informer"
I think I looked at 90% of the posts and from what I see the code should work. I get "Invalaid Procedure Call or Argument"
I tried drive mapping and using IP address (as I found in the posts) still no luck except with IP address I got as far as "permission denied".
I'm sure I'm missing somethng very basic!
Thanks for some help.