Search code examples
pythonmicrosoft-edge

Get with python address for default folder of MS Edge-browser for downloading files


Let's assume that the default folder for downloading files is set in the Microsoft Edge browser E:\Edge_downloads Is it possible in Python to get information about the address of this folder?

I tried looking in the registry, but it's not there.


Solution

  • If you changed Edge download folder, it will show in Edge Preference file. You can find the file like below:

    1. Open edge://version/ in Edge.
    2. Find Profile path and open that folder.
    3. The Preference file is in that folder.

    enter image description here

    1. Open Preference file and search default_directory in download string like below. Here I set Edge download folder to E:\download and you can see it's the value of default_directory:
    "download":{"default_directory":"E:\\download",...
    

    You can try to use Python to search in this Preference file to get the path of Edge download folder.