Cannot move folders over Shares
Hello!
I run into some difficulties when I try to move folders:
This code works:
Code:
$src="c:\tmp\sourcefolder\"
$dest="c:\tmp\Destination\"
Move $src $dest
This one doesn't:
Code:
$src="\\server\share1\sourcefolder\"
$dest="\\server\share2\"
Move $src $dest
Error number and message are:
Quote:
ERROR 123: The filename, directory name, or volume label syntax is incorrect.
I tried it with COM:
Code:
$fso = CreateObject("Scripting.FileSystemObject")
$err=$fso.MoveFolder($src, $dest)
$fso=0
and get no error in both cases (local and remote move) - but nothing happens...
Can somebody please push me in the right direction? I prefer working with Shares.
Thank you very much in advance.