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

2019-10-14 Thread Tim Roberts
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, value) and PyIPropertyStore.Commit() to write the date back, but I'm not sure how to construct the value because it requires PyPROPVARIANT type. I

[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