I'm very new to python and I am trying to write a short script that simply opens file explorer then closes it again, I can get it to open fine using the following..
import os
import subprocess
os.startfile("Y:\\")
I tried adding the following to then close the explorer window but this seems to do nothing
os.system("taskkill /f /im explorer.exe")
I'm sure I'm missing something simple...
Thanks