When I try to run the following
copy %HOMEPATH%\"My Documents"\test.txt %CD%
I get the error:
Access is denied. 0 file(s) copied.
Your issue is the command:
It should be:
Since Windows Vista the documents folder was renamed. Windows 7 introduced some weird feature that shows it as "My Documents", but the underlying path (which you must use from the command line) is "Documents".
Actually, it gets even more confusing. Vista put a symbolic link called "My Documents" in the profile folder, so legacy applications would still work. Access is denied under normal circumstances, and it should not be used, touched, modified, etc. Windows 7 keeps that symbolic link, but also shows the "Documents" folder as "My Documents". If you show hidden/system filed, you'll actually see two "My Documents" folders in your profile in Windows 7 - one is a mask put on the "Documents" folder while the other is the symbolic link. The symbolic link is the one you're actually trying to navigate to when you go to the path
Also, I don't think you can put quotes in the middle of a path. You should put them around the whole path, e.g.:
You can take owenership of the folder, using this script. See if you have any errors after doing that.