none
xcopy access denied RRS feed

  • Question

  • Dear all,

    i need to copy some files from a source directory not protected (standard users have full rights) to a protected folder (standard users have the following permissions on Folder and Subfolders: Traverse folder / execute file, List folder / read data, Read attributes, Read extended attributes, Create files / write data, Create folders / append data, Write attributes, Write extended attributes, Delete, Read permissions. Furthermore standard users have the following permissions on Files only:  Traverse folder / execute file, List folder / read data, Read attributes, Read extended attributes, Create files / write data, Write attributes, Write extended attributes, Read permissions). 

    The permissions on the protected folder are set in order to avoid modification and deletion of the files, but the renaming of the subfolders is allowed. The permissions work well and the standard users can manually copy and paste the files from the not protected folder to the protected one. But if if the user try to accomplish the same action with the xcopy command from CMD an access denied error is shown and no files are copied. the command is simply: xcopy "C:\..\NotProtected" "C:\..\Protected\" /Y /Q

    is there a workaround to automatically copy files to a directory with the privileges above?

    The OS is Windows 7 Professional

    Thank you for any suggestion.

    Simone

    • Moved by Bill_Stewart Thursday, December 20, 2018 9:59 PM Unanswerable drive-by question
    Thursday, October 25, 2018 3:04 PM

All replies