for /f "skip=2 tokens=2* delims= " %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal') do set Personal=%%j
@echo off
set "str=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
for /f "tokens=2*" %%a in ('reg query "%str%" /v Personal 2^>nul') do set "a=%%b"
@echo off
for /f "skip=2 tokens=2* delims= " %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal') do set Personal=%%j
cd /d "%Personal%"
rd /q /s test
for /f "skip=2 tokens=2* delims= " %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal') do call set Personal=%%j