Friday, August 19, 2016

Path to Windows 7 Libraries?

I use xcopy to backup the contents of my Libraries, so I need a command line path to the various Libraries.  There are hundreds of answers on the Web, all wrong.  This should be easy.

Alternatively is there a backup program that keeps the files you backed up visible on your backup drive through Windows Explorer?

Windows 7 backup/restore do what I need, just very slowly.

7 comments:

Rick C said...

I don't know of a programmatic way to find this information, but if you right-click on the library in Explorer and choose Properties, you'll get a dialog that shows you all the directories in the library.

Clayton Cramer said...

Rick C: It shows paths that are empty from cmd.

Rick C said...

Guess I'm not sure what you mean, Clayton. I added c:\temp to my Documents library, then I right-clicked on the Documents library in Explorer and chose Properties. Then I got this:

http://imgur.com/a/4W6BN

notice it shows the temp folder, and also "documents"--the first one, of course, is c:\users\rick\documents, so I know the full path of both directories in the library.

Clayton Cramer said...

Properties shows me that My Documents is in C:\Users\clayton but most of the files in My Documents are not in C:\Users\clayton.

Rick C said...

Oh. No, "My Documents" is c:\users\clayton\documents by convention.

Clayton Cramer said...

Not on mine.

Marc C. said...

%userprofile%\My Videos %userprofile%\Documents etc.

You can access this list of system variables by opening cmd prompt and typing the cmd set and hit enter.