Re: [python-win32] How to set value with PyIPropertyStore

2019-11-10 Thread Tim Roberts
On Nov 10, 2019, at 4:13 PM, Peng Chen wrote: > > then I tried > riid = "" > ctx = None > properties = propsys.SHGetPropertyStoreFromParsingName( > file_name, ctx, shellcon.GPS_READWRITE, riid) > it reported: > (-2147221005, 'Invalid Class String', None, None) That’s correct.

Re: [python-win32] How to set value with PyIPropertyStore

2019-11-10 Thread Peng Chen
Hi Tim, Thanks, this works! But now the set value part gives access denied. I checked around, it seems the file needs to be opened in GPS_READWRITE mode in order to write info to the file. So I tried: from win32comext.shell import shellcon properties = propsys.SHGetPropertyStoreFromParsingName(