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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top