Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkey query

2012-09-06 Thread Tim Roberts
raf wrote: > ages ago i wrote some code to get a user's home directory on windows > (even if they'd gone into the registry and moved it). i remember it > working when i wrote it but at some point it stopped working. when i > looked into it, it turned out that the registry subkeys no longer > looked

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-06 Thread Roger Upole
raf wrote: > so my questions are: > did the sid for the account name ever uniquely identify the user? Yes. In fact it's the only way, since you can change the login name of an account. > how do i obtain the "1009" that needs to be appended to the sid > to complete it? win32security.LookupAccou

Re: [python-win32] Example code for SHOpenFolderAndSelectItems?

2012-09-06 Thread Scott Nelson
Roger, Thanks much for the example code (and the implementation of the feature in the first place!). It got me running. For posterity, I copied in my function below that wraps up your sample code in a function. Thanks again! -Scott from win32com.shell import shell, shellcon def launch_file_exp