for /F "skip=2 tokens=2*" %j in ('reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Startup"') do set STARTUP="%k"
for /F "tokens=3*" %j in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Common Startup"') do set COMMONSTARTUP="%k"
cd %STARTUP%
cd %COMMONSTARTUP%