[python-win32] How to create Windows directory shortcut from Python

G. Ken Holman gkholman@CraneSoftwrights.com
Mon, 17 Mar 2003 15:34:25 -0500


I'm wondering if anyone has figured out how to create a Windows directory 
shortcut (Windows equivalent of a linked directory) from within a Python 

I can create a shortcut from the Windows Explorer by a right-click copy and 
selecting "Create Shortcuts Here" ... I'm looking for a Python solution to 
do the same action.

I had anticipated the Windows implementation of os.symlink() would have 
done it, but there appears to be no implementation of os.symlink() under 

I could find nothing in a search of the archive of this list.

Thanks for any help you can be!

................. Ken

Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO
                              North America:      June 16-20, 2003

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/z/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1              Practical Formatting Using XSL-FO
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/z/bc