# Open Windows file explorer to specified path

Hi Guys,

Anyone know how best to do this, I have tried a few ways from google-ing “python open file explorer” but nothing is working nicely within Ignition…

-Dion

system.util.execute(["explorer.exe", r"C:\path\to\folder"])
should work, as long as you’re in a client scope - from the gateway, this will do nothing.

2 Likes

Thanks PGriffith, I just found this which works too:

import subprocess
subprocess.Popen(r’explorer “C:\Ignition”’)

1 Like