≡ Menu

Open my documents folder from command line

In Windows XP, we can use userinit command to open my documents folder in explorer.

This command can be used from Run window also.

In Windows 7, ‘userinit‘ command opens the Libraries folder, which shows links to Documents, Pictures, Music and Video. To open Documents folder, we can run the command ‘Documents’ from Run window.  However, this does not work from command prompt. We can use ‘start documents‘ in command prompt to open the documents folder.

 

6 comments… add one
  • Anonymous

    Works fine but not in Win7.

  • Techblogger

    In windows 7 it opens the libraries folder where Documents, pictures etc are located.

  • LJ Dellar

    No, it doesn't.

  • Ty Sovanmony

    Yes! It worked fine! I test on my Windows 7 Ultimate Service Pack 1. Thank bro! I really like it.

    But the problem is:
    – I can't use userinit to winrar command line to extract. It support only %userprofile%\My Document. But I changed Document default location to drive D: . how can I open My Document folder from run command (%userprofile%\My Document not support too in run command when I chaged My Document default location)?

  • Techblogger

    Check the value 'Personal' under the node HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders.

    If it's pointing to the actual mydocs location then you can run a registry query command first to know the mydocs location and then use that value in the winrar command. You will need to do this in a batch file. Below command would print the registry value.

    reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v personal

  • Anonymous

    Yes, In windows 7 it opens the libraries folder…

Leave a Comment