Reading in NT Variables / Login Script

Peter Hansen peter at engcorp.com
Wed Jun 4 15:10:26 CEST 2003


Tony wrote:
> 
> Apologies for asking such a dumb question, but I have become a little
> stuck.
> I am re-writing out NT Logon Scripts, they are currently very
> cumbersome, and to be quite frank crap...
> 
> I am need to use several of the NT variables, and use these at several
> stages, within the script.
> 
> Can anybody please point me in the right direction??

The question is quite unclear, since the term "NT variables" is not
standard.  Do you mean environment variables, such as those you would
find at the cmd.exe prompt if you were to type "set"?  If so, investigate
the os.environ object.

-Peter




More information about the Python-list mailing list