[Tutor] making a shortcut in windows
oscar.j.benjamin at gmail.com
Tue Sep 4 14:06:55 CEST 2012
On 4 September 2012 02:57, Garry Willgoose <Garry.Willgoose at newcastle.edu.au
> I want to put a shortcut onto the desktop in windows (XP and later) in
> Python 2.6 or later. In Unix its easy using os.symlink but I can't find
> anything equivalent for windows. My searches on the web led me to the code
> below but the code returns the error
> AttributeError: function 'CreateSymbolicLinkW' not found
> so does anybody have any suggestions?
Are you really trying to create a symbolic link? Note that this is not the
same thing as a 'shortcut' in Windows. If you say why you want the shortcut
someone may be able to help you find another way of doing what you want.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor