I notice that a folder called “My Documents” shows up in two places in Windows, and there’s another that seems to have the same
things in it as well. Are all these copies taking up extra space on my hard drive? Which one should I use? Can I get rid of any of
them?
They’re not copies.
In an effort to be helpful (which we’ve heard before), Windows actually treats your My Documents folder differently … it’s
“special”.
Which one is real? What are the implications? Let’s look at that.
]]>
<


Can you delete the My documents folder on the C drive if you have moved it to another drive?
How can you make each My Documents unavailable to others, without having it on the C drive?
I had 24 Perl scripts that referred to ‘$ENV{USERPROFILE}\\My Documents’ (that would be ‘%USERPROFILE%\My Documents’ in a .bat file). After I updated to W11, that path no longer exists. I had to change each occurrence to ‘$ENV{USERPROFILE}\\Documents’.
That was in Perl, but I suspect it would be a problem in any script (Python, Bash, etc.) that refers to ‘My Documents’. It might also be a problem if ‘My Documents’ appears in the PATH variable. I did not test that.
Leo, you might want to point out this ‘gotcha’ in one of your treatises on W10 to W11 upgrades. It’s going to affect only a few of your more sophisticated readers, but they’ll be grateful for the tidbit.
Correction: The ‘My Documents’ path does exist, but it doesn’t point to ‘Documents’ any more. In each case, I was actually pointing to $ENV{USERPROFILE}\\My Documents\\[some subdirectory], and that is the path that no longer exists.