How to get the user name, and to show a select directory dial og?
Tim Golden
tim.golden at viacom-outdoor.co.uk
Fri May 23 11:10:39 EDT 2003
Tim Golden wrote:
>
> The first has already been answered (win32api.GetUserName), altho' I
> would point out that this won't work on Win9x (try
> win32wnet.WNetGetuser instead).
Peter Hansen:
PH> Looks like, possibly WNetGetUser() (note capitalization) exists but
PH> has a problem internally, but WNetGetuser() does not even exist.
Fair enough. I've just tried win32api.GetUserName on a Win98 machine
and it works ok, so not sure what I was thinking about before. But...
I've also tried WNetGetUser (with the correct capitalisation) and
that's ok too. That's using the just-downloaded win32all 151 against
the just-downloaded Python 2.1.3.
Looks like I'm trailing a red-herring, but I was sure that I had known
about some difference (I'm supporting a mixed Win9x / Win2k site here).
I'd better look around and get acquainted with the facts.
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-list
mailing list