Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I saved some files in

Libraries -> Documents

on windows 7 and I try to access to those files with cygwin.

Where is that folder Documents ?

I've looked under /cygdrive/c/Users/my_user/ but I don't find my files.

Libraries -> Documents

share|improve this question
up vote 1 down vote accepted

By default, the local "Documents" library is actually the combination of two folders - a private folder for the user and a public folder for all users on the computer. Try the following Cygwin folder paths for a hypothetical user "jdoe".

  • /cygdrive/c/Users/Public/Documents
  • /cygdrive/c/Users/jdoe/Documents

If you look in both locations, you should find all items visible in your "Documents" library. If your network policy is using document redirection, or other remote document folder techniques, then the user folder may be on a remote machine - sounds like you're using a default local folder setup though.

If for some reason your personal "Documents" path is not the default, it will be revealed by the following command. Even though this is a Windows command, it will work in the Cygwin shell.

reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"
share|improve this answer
1  
Nice! I didn't know that you could query the registry from cygwin. – Luc M Oct 25 '13 at 17:20
1  
I found my files into /cygdrive/c/Users/Public/Documents. Thanks! – Luc M Oct 25 '13 at 17:20

It's a bit tricky, because it's hidden in the AppData but the actual "real" path is:

C:\Users\yourUser\AppData\Roaming\Microsoft\Windows\Libraries\Documents.library-ms

And the path of the Libraryonly is of course:

C:\Users\yourUser\AppData\Roaming\Microsoft\Windows\Libraries\
share|improve this answer
    
It's a XML file, not a folder. The folder Libraries contains desktop.ini, Documents.library-ms, Music.library-ms, Pictures.library-ms and Videos.library-ms – Luc M Oct 25 '13 at 15:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .