Here is the code:
const OVERWRITE = True
Const SRC_ROOT = "\\gso-s02\d$\InetPub\intranet\marketing_sales"
Const DEST_ROOT = "\\gso-s12\d$\Inetpub\intranet\marketing_sales"
wscript.timeout = 10000
set fso = createobject("Scripting.FileSystemObject")
set SrcFolder = fso.GetFolder(SRC_ROOT)
SrcFolder.Copy DEST_ROOT, OVERWRITE
When running I get a permission denied error on the "copy" line. I am running it as the domain admin so I don't think permissions should be an issue. There are also no read only files.
I can copy and paste the folder manually just fine.
const OVERWRITE = True
Const SRC_ROOT = "\\gso-s02\d$\InetPub\intranet\marketing_sales"
Const DEST_ROOT = "\\gso-s12\d$\Inetpub\intranet\marketing_sales"
wscript.timeout = 10000
set fso = createobject("Scripting.FileSystemObject")
set SrcFolder = fso.GetFolder(SRC_ROOT)
SrcFolder.Copy DEST_ROOT, OVERWRITE
When running I get a permission denied error on the "copy" line. I am running it as the domain admin so I don't think permissions should be an issue. There are also no read only files.
I can copy and paste the folder manually just fine.