Permission denied on CopyFile in VBS

后端 未结 7 1327
無奈伤痛
無奈伤痛 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 11:17

    You can do this:

    fso.CopyFile "C:\Minecraft\options.txt", "H:\Minecraft\.minecraft\options.txt"
    

    Include the filename in the folder that you copy to.

提交回复
热议问题