How do I open Windows Explorer in Python?

Asked 1 years ago, Updated 1 years ago, 74 views

For example, if you run a program, you want to open the C:\ folder in Windows Explorer.

I just want to double-click a folder on the window, how can I do it?

python path explorer

2022-09-21 17:59

1 Answers

You can use pyautogui. You can refer to the app First, pip install pyautogui in cmd and then spread it out.

import pyautogui

pyautogui.hotkey('win','e')

You can do it. Have a great programming!


2022-09-21 17:59

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.