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
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
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