Mark Hammond
2001-03-14 22:52:01 UTC
Howzit,
After searching through the Python Docs, I found that on Un*x I could
use getpass.getuser(), but there is no equivalent for the Win32
platform.
In other words, how can I get the username in Windows?
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>
TIA
nomad
win32api.GetUserName()After searching through the Python Docs, I found that on Un*x I could
use getpass.getuser(), but there is no equivalent for the Win32
platform.
In other words, how can I get the username in Windows?
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>
TIA
nomad
For WSH examples, check out the win32com\test directory.
Mark.