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

2019-11-15 Thread Peng Chen
Ok, I see, thanks a lot for your help though. I probably need to find a different method. Thanks a lot for your patience! On Fri, Nov 15, 2019 at 6:51 AM Tim Roberts wrote: > On Nov 14, 2019, at 4:15 PM, Peng Chen wrote: > > > > Nah, thanks, the stuff I'm trying to do is actual

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

2019-11-14 Thread Peng Chen
of pywin32 and really didn't expect this coming... Thanks! On Mon, Nov 11, 2019 at 5:24 AM Tim Roberts wrote: > On Nov 10, 2019, at 4:13 PM, Peng Chen wrote: > > > then I tried > riid = "" > ctx = None > properties = propsys.SHGetPropertyStore

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

2019-11-10 Thread Peng Chen
t reported: (-2147221005, 'Invalid Class String', None, None) sorry for the different issues, possible to take a look on this? Thanks! On Fri, Nov 8, 2019 at 5:22 AM Tim Roberts wrote: > On Nov 7, 2019, at 2:33 PM, Peng Chen wrote: > > > I tried: > dateShifted = propsys.PyPRO

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

2019-11-07 Thread Peng Chen
import propsys, pscon On Thu, Nov 7, 2019 at 7:26 PM Tim Roberts wrote: > Peng Chen wrote: > > Hi Tim, > > Thanks for the reply. Sorry for the late. I just found your email > > today. Yes I tried with this code: > > > > from win32comext.propsys import prop

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

2019-11-06 Thread Peng Chen
) it reports: Object must be a PyPROPVARIANT On Tue, Oct 15, 2019 at 1:25 AM Tim Roberts wrote: > Peng Chen wrote: > > > > I'm working on a script to shift video media creation time. > > > > I can see there is a function > > PyIPropertyStore.SetValue(key, v

[python-win32] How to set value with PyIPropertyStore

2019-10-14 Thread Peng Chen
Hi, I'm working on a script to shift video media creation time. I used: properties = propsys.SHGetPropertyStoreFromParsingName(file_name) mDate = properties.GetValue(pscon.PKEY_Media_DateEncoded).GetValue() and successfully retrieved media encoded date property. Now I could shift the time and