[python-win32] Re: Launching Windows' shortcut editor

Roger Upole rwupole at msn.com
Wed Jan 25 21:00:48 CET 2006


> Hi, I would like to invoke the same shortcut editor that you get when
> you right cilck on a shortcut (link) and choose Properties.  It lets
> you edit the Target and Start In directories, etc.

> I've tried:
>             win32api.ShellExecute (0, "Properties", filename, None, ".", 
> 0 )
>             win32api.ShellExecute (0, "Edit", filename, None, ".", 0 )
> Where filename is the .lnk file But I get a permissions error with the
> "Edit" and no response from "Properties"
>
> Is there a way to do this?
>
> Thanks,
> -jim

The Properties command works fine here.
(python 2.4.2, WinXP).  What value does
the function return ?

       Roger




More information about the Python-win32 mailing list