Opening a drive folder from Python

Hughes, Chad O chad.hughes at pnl.gov
Wed Jun 15 01:27:40 CEST 2005


I think you are talking about the following:

from win32com.client import Dispatch
path = raw_input('Type in a path: ')
s=Dispatch('WScript.Shell')
s.Run('Explorer %s'%path)


Chad
 

-----Original Message-----
From: python-list-bounces+chad.hughes=pnl.gov at python.org
[mailto:python-list-bounces+chad.hughes=pnl.gov at python.org] On Behalf Of
John Henry
Sent: Tuesday, June 14, 2005 4:02 PM
To: python-list at python.org
Subject: Opening a drive folder from Python


Can somebody please tell me how to pop open a drive folder from a Python
script? 

Thanks.

--
John

-- 
http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list