0phoi5 Posted November 2, 2015 Share Posted November 2, 2015 Hi all, I am using the following CMD command; reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal /t REG_SZ /d P:\ /f However, this doesn't work. The key already exists, as as 'M:\', but I need it to change to 'P:\'. The CMD prompt states 'The operation completed successfully', but the key does not change. I need to do this via CMD, rather than a .reg or regedit. Thank you. Quote Link to comment Share on other sites More sharing options...
barry99705 Posted November 2, 2015 Share Posted November 2, 2015 Try deleting the old key first. Quote Link to comment Share on other sites More sharing options...
0phoi5 Posted November 2, 2015 Author Share Posted November 2, 2015 (edited) Ah, I found out why it doesn't work. I was running CMD as admin and the key change only takes place if running as local user, as it's a local user key. It was indeed working, but it was changing the key for my admin account and not the localy logged-on user (The key was HKCU, not HKLM) Doh. Thanks for the reply barry99705. Edited November 2, 2015 by haze1434 Quote Link to comment Share on other sites More sharing options...
barry99705 Posted November 3, 2015 Share Posted November 3, 2015 Good catch! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.