Python Forum
Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File explorer
#1
Hi,
In a win11 python 10.x environment, I can start the file explorer from within python like so:
import os
def show_explorer(path):  
    os.startfile(path)
show_explorer(os.path.abspath("c:/windows/explorer.exe"))
Almost what I want. I would like it to open on a specific directory outside python.
Why?
The setup: inside python resides a tree and each extremity is a directory.
I want to click on a tree node, automatically navigate to the directory and manipulate it. (paste a pdf, click on a pdf, view a pic...etc)
If I do this inside tKinter, I cannot manipulate the directory.
Can this be done?
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
File explorer - by DPaul - Aug-04-2022, 06:41 AM
RE: File explorer - by DeaD_EyE - Aug-04-2022, 08:37 AM
RE: File explorer - by DPaul - Aug-04-2022, 09:10 AM
RE: File explorer - by Gribouillis - Aug-04-2022, 09:25 AM
RE: File explorer - by DeaD_EyE - Aug-04-2022, 09:56 AM
RE: File explorer - by DPaul - Aug-04-2022, 02:15 PM
RE: File explorer - by DPaul - Aug-04-2022, 03:22 PM
RE: File explorer - by Gribouillis - Aug-04-2022, 03:58 PM
RE: File explorer - by DeaD_EyE - Aug-04-2022, 05:22 PM
RE: File explorer - by DPaul - Aug-05-2022, 06:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable Explorer in spyder driesdep 1 377 Apr-02-2024, 06:50 AM
Last Post: paul18fr
  Rename files in a folder named using windows explorer hitoxman 3 881 Aug-02-2023, 04:08 PM
Last Post: deanhystad
  Odd behavior when starting Explorer.exe malonn 2 2,216 Sep-14-2020, 07:45 PM
Last Post: malonn
  Renaming explorer files in order? stroudie2 2 3,024 Mar-03-2019, 12:41 AM
Last Post: stroudie2
  Looking through files in explorer in order? stroudie2 0 1,790 Mar-02-2019, 11:06 AM
Last Post: stroudie2
  Spyder hides middle array values in variable explorer window davidqvist 0 2,462 Aug-03-2018, 11:04 AM
Last Post: davidqvist
  Spyder IDE - make variable explorer to follow the color scheme of the Editor Antonio 0 5,554 May-05-2018, 10:20 PM
Last Post: Antonio

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020