I have been struggling to find out opening of windows explorer with particular folder location in documentation. I have tried:
import subprocess
subprocess.Popen(r'explorer /select,mypath')
All suggestions are welcome!!
I have been struggling to find out opening of windows explorer with particular folder location in documentation. I have tried:
import subprocess
subprocess.Popen(r'explorer /select,mypath')
All suggestions are welcome!!
To open specific folder in explorer:
import subprocess
subprocess.Popen('explorer "D:\your_path"')
To open explorer with specific folder selected
import subprocess
subprocess.Popen(r'explorer /select,"D:\your_path"')
You need to add the actual path to the subprocess.Popen
function call. Use this
import subprocess
subprocess.Popen(r'explorer /select,"C:\path\of\folder\file"')
To open explorer of particular location use:
import subprocess
subprocess.Popen('explorer "C:\path\to\folder"')