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…


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.


Thanks PGriffith, I just found this which works too:

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

1 Like