This does not work:

cd "%userprofile%\local settings"
dir

	File Not Found

This does:
cd "%userprofile%\local settings\temp"
dir

This does not work:
cd "%userprofile%\local settings\temp"
attrib

	Path not found - C:\Users\felix_a\Local Settings\temp

This does:

cd "%userprofile%\appdata\local"
dir

and so does this

cd "%userprofile%\appdata\local\temp"
attrib