Hello everyone,
First of all, this is my first post here, if this topic isn't in the correct place, simply tell me (or @mods: move it please)
The title may be misleading. I know there isn't a variable to "My documents".
That's why I need a way around it. Some of us know that the location of "My documents" is stored into the register:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
more specific into the value "Personal"
Well using this I exported the key above (*\Shell Folders) into a .txt which works like a charm.
REG EXPORT "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "test.txt"
The problem is that is shows all the values in "Shell Folders"
I only need the text after "Personal"= *Path I need*
then I could set in to a variable %MYDOCPATH% or something and I could use that into the bat I'm making to copy stuff into "My Documents"
Could anyone help me isolate the path (in a bat file) I need and find a way to set it as a variable.
Thanks in advance,
Kind regards,
Bennieboj
ps: I using WinXP home edition atm but the registry key is the same on every Windows PC (2000, XP, Vista and Win7)