"JT" <JT@xxxxxx> wrote in message
>I have this line in my script (below). I am getting an 'invalid procedure
> call or argument' error when it gets to this line. Is my syntax incorrect
> what is the problem with copying from a hidden share?. The path is
> permissions are fine and 'path2 & "\SSH" ' as a destination works fine
> when I
> try to copy a local folder there.
> Can anyone enlighten me on my mistake?
> objFSO.CopyFolder "\\501tssql\userkeys$", path2 & "\SSH"
> thank you
A quick test reveals that one must specify a folder for the source, not a
share. Whether the share is hidden or otherwise is irrelevant. This will
objFSO.CopyFolder "\\501tssql\userkeys$\FolderName", path2 & "\SSH"