[python-win32] How to read the target of a Windows Shortcut

Tim Golden mail at timgolden.me.uk
Fri Mar 4 13:00:21 CET 2011


On 04/03/2011 11:59, Ayaskanta Swain wrote:
> Hi,
>
> I want to know the target path of a windows shortcut. How do i read the
> short cut & retrieve the actual target path it is pointing to? I
> searched the internet & all the documents I found there refer to use
> Win32com.shell or win32com.client module but was not satisfied with the
> solutions given there.

Well I don't know if this was one of the solutions with which
you were "not satisfied", but it does at least have the merit
of working:

   http://timgolden.me.uk/python/win32_how_do_i/read-a-shortcut.html

TJG


More information about the python-win32 mailing list