Re: Unicode-aware file shortcuts in Windows

2005-09-17 Thread Martin v. Löwis
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

Re: Unicode-aware file shortcuts in Windows

2005-09-16 Thread John Bauman
"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

Re: Unicode-aware file shortcuts in Windows

2005-09-16 Thread Neil Hodgson
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

Unicode-aware file shortcuts in Windows

2005-09-16 Thread Stanislaw Findeisen
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 =