Win32api.... can it create a Windows shortcut (.lnk) file?

me none at fake.net
Fri Nov 12 20:29:49 EST 1999


Doh!

I guess with all the time I was spending reading the docs for win32com, I
missed the typo I had in the target path name...

Oh well, you live and you learn, and there's stupider mistakes you can make.

It works great, btw... thanks again for all the responses.

Kevin.




me <none at fake.net> wrote in message
news:zpNW3.53035$Rx2.650681 at news1.rdc1.bc.home.com...
> That's a nice clean example.... but I'm having one small problem, even
> taking it exactly as you put it:
>
>
> ##########################################
> Traceback (innermost last):
>   File "C:\Program
> Files\Python\Win32\Pythonwin\pywin\framework\scriptutils.py", line 237, in
> RunScript
>     exec codeObject in __main__.__dict__
>   File "C:\PROGRA~1\PYTHON\MYPROJ~1\WINTOOLS\wintools.py", line 144, in ?
>     CreateShortCut(Path,Target,Arguments,StartIn,Icon,Description)
>   File "C:\PROGRA~1\PYTHON\MYPROJ~1\WINTOOLS\wintools.py", line 132, in
> CreateShortCut
>     persist.Save(Path, 1)
> com_error: (-2147467259, 'Unspecified error', None, None)
> ##########################################
>
> Unfortunately, "Unspecified error" doesn't help me too much... q:].  I'll
be
> looking into that tonite, but if you have a quick fix, I'd appreciate it.
> I've been using the win32api module a lot, and it's great, but not
pythoncom
> a lot yet...
>
> q:]
>
> Kevin.
>







More information about the Python-list mailing list