0

I'm trying to change the location of the Windows download folder. I want to do from the CMD and not from "right click - Properties - Location - Find Target". I already tried with the symlink (mklink), but when I download something, the download will both folders, the original and the new. Thx!!!

2
  • why do you not want to use the GUI? Apr 17 '16 at 6:37
  • I want to do it through a script, adding to already i have.
    – avechuche
    Apr 17 '16 at 7:41
1

The location you are searching for is stored in Registry at HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\{374DE290-123F-4565-9164-39C4925E467B}. As already mentioned in this StackOverflow question you could use such a snippet:

Reg add "HKCU\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" /d "C:\Users\YourName\Downloads"
:: Optional:
Reg add "HKCU\Software\Microsoft\Windows\Current Version\Explorer\Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" /d "C:\Users\YourName\Downloads"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.