Configuring a local and server machine using LotusScript

How do I configure the hardware and software for my local and server machine using LotusScript?

I'm not sure what configuration information you are looking for, but here are a couple of ideas. First, the NotesSession.Platform property will return the operating system type, and the NotesVersion property will return the version of the Lotus Notes client:

Dim session as new NotesSession
Print session.platform
Print session.Notesversion

For anything more complicated than that, you would have to call an external .DLL or shell out to an outside program. For example, you could create a batch file to run "ipconfig.exe \all >config.txt", use the LotusScript "Shell" command to execute the batch file, and then open the resulting "config.txt" text file and parse it for machine name, IP address, etc.


Do you have comments on this Ask the Expert Q&A? Let us know.

This was first published in February 2006