Re: permission denied when moving folder




"Lee Kok Onn" <kolee@xxxxxxxxxxxxxxxx> wrote in message
news:eKJo2ByYIHA.4440@xxxxxxxxxxxxxxxxxxxxxxx
I use the following script to move folder from my server1 to another
server2 share folder.

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFolder "C:\data" , "\\server2\backup"

It will end with "permission denied" error. So how can I resolve this, pls
help.

Thanks


The MoveFolder method is basically a "rename" method,
hence it only works if the source and destination reside on
the same volume (same as move.exe under WinXP).


.


Loading