- 1 year ago
How to launch settings/defaultapp window programatically on Windows 8/8.1?
Comment
1 / 1
To launch the Default Apps settings window programmatically on Windows 8/8.1, you can use the ms-settings:defaultapps
URI scheme. Here's an example of how you can open the Default Apps settings window using Python:
pythonimport os
# Open the Default Apps settings window
os.system("start ms-settings:defaultapps")
This code uses the os.system
function to execute the start
command with the ms-settings:defaultapps
URI scheme. The start
command is a Windows command that launches the default program associated with the specified URI scheme, in this case, opening the Default Apps settings window.
When you run this code, it should open the Default Apps settings window on Windows 8/8.1.