Permission denied on CopyFile in VBS

后端 未结 7 1174
無奈伤痛
無奈伤痛 2020-11-30 11:08

I\'m trying to automate pushing a file into my users\' home directories, but am stuck on a \"Permission Denied\" error — is thrown on line 6 here, with the CopyFile call.

相关标签:
7条回答
  • 2020-11-30 11:43

    I've only ever seen CopyFile fail with a "permission denied" error in one of these 3 scenarios:

    • An actual permission problem with either source or destination.
    • Destination path is a folder, but does not have a trailing backslash.
    • Source file is locked by an application.
    0 讨论(0)
提交回复
热议问题