Batch file problem

Joined
Jun 30, 2007
Messages
1
Reaction score
0
Hi,

So i am trying to write a batch file which will copy the my documents folder, the problem i face is that some users move their my documents to various different locations and not the default of %userprofile%my documents.

So i have found out that the location i need is stored in the registry

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

and is under "personal"

So i need to take the data value of that key and use it as a variable %mydocs% of then i can use it in my copy statements.

Any suggestions are most welcome.
 
Back
Top