John Bauman wrote:
> I see that another way is available here:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_programming/shortcuts/shortcut.asp
> I haven't tried, and I don't have the knowledge to convert the C++ to
"Stanislaw Findeisen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone know how to create file shortcuts in Windows?
>
> The only way I know is like:
>
> ---
>
> import win32com.client
>
> wScriptShellObject = wi
Stanislaw Findeisen:
> E:\Documents and Settings\Staszek\Progs\Python-Windows\test_1>cf.py
> Traceback (most recent call last):
> File "E:\Documents and
> Settings\Staszek\Progs\Python-Windows\test_1\cf.py", line 7, in ?
> shortcut.Save()
> File ">", line 2, in Save
> pywintypes.com_error
Does anyone know how to create file shortcuts in Windows?
The only way I know is like:
---
import win32com.client
wScriptShellObject = win32com.client.Dispatch("WScript.Shell")
shortcutName = unicode("shortcut.lnk", "utf8")
shortcut =