How can I get the logged in users username on Win32?

Werner Schiendl ws-news at gmx.at
Wed Mar 14 09:18:08 EST 2001


> As a side note, how can I enable Windows Scripting Host support for
> python - there is mention of python in the original WSH docs - and if
> I can use python scripts in WSH how would I call the built-in
> Wscript.<methods>
>

I installed the ActivePython distribution from ActiveState and this works by
default.
Just give your file the extension ".pys" and it works.

Samples are found in the installation as well (Python 2.0)
<Install-Dir>\win32comext\axscript\demos\client\wsh

hth
werner

> TIA
>
> nomad





More information about the Python-list mailing list