anonymous
2010-08-16 05:30:51 UTC
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal"') DO SET docs=%%B
echo Documents folder: %docs%
But when I add:
cd "%docs%"
I get back:
The path could not be found.
Why? And how to fix it?
Oh, and Current... should be CurrentVersion\Explorer\User, of course.