How to get the user name, and to show a select directory dial og?

Arnal arnaud at tribu.ch
Sun May 25 16:57:22 EDT 2003


In mailman.1053703001.27623.python-list at python.org,  "Tim Golden"
<tim.golden at viacom-outdoor.co.uk> wrote :

> Tim Golden wrote:
> 
> 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.

Thanks! I'll look at this. It just has to run on a specific machine, so I
just have to test once.





More information about the Python-list mailing list