permission denied when moving folder



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

.



Relevant Pages

  • Re: simple script to copy network files
    ... All "dat" files from a network folder to a usb key. ... Set objFSO = CreateObject ... A VB Script file or a batch file. ... ) = strExt then bFound = True ...
    (microsoft.public.scripting.vbscript)
  • Re: delete a folder and all subfolders
    ... Set objFSO = CreateObject ... objFSO.DeleteFile(objFolder & objFile), DeleteReadOnly ... I found this great script here: ... > a single quote in the folder name it will fail. ...
    (microsoft.public.scripting.vbscript)
  • Re: Setting Permissions to Home folders
    ... I have created this script and for some reason the script assigns only full ... permssions to user home folder i am not able to assign only Modify permission ... dim Fol ... Set objFSO = CreateObject ...
    (microsoft.public.windows.server.scripting)
  • Re: Trying to run a WinZip script on a set of files in a folder.
    ... Set WshShell = Wscript.CreateObject ... Set objFSO = CreateObject ... >I want to run a script to loop through a set of files in a folder ... > Ive used the following script but it doesnt seem to be working very well. ...
    (microsoft.public.scripting.vbscript)
  • Re: Folder Copy
    ... Please advise how can I copy a user's desktop folder ... I want the script to copy this for multiple PCs. ... Set objFSO = Wscript.CreateObject ... objFSO.CopyFolder strDesktop, "f:\desktop" ...
    (microsoft.public.scripting.vbscript)

Loading