[python-win32] Launching Windows' shortcut editor

James Carroll mrmaple at gmail.com
Wed Jan 25 17:27:03 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


More information about the Python-win32 mailing list