Advertisement
Java_Volume1 Windows System Services #86712

Retrieve System Info

Retrieves System Information in a single line of code

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Private Sub cmdSysInfo_Click()
'Will popup a message box displaying your computer name
 MsgBox(environ("computername"))
'Like that we can get it for the variables like
    'ALLUSERSPROFILE()
    'APPDATA()
    'CommonProgramFiles()
    'COMPUTERNAME()
    'ComSpec()
    'HOMEDRIVE()
    'HOMEPATH()
    'LOGONSERVER()
    'NUMBER_OF_PROCESSORS()
    'OS()
    'Os2LibPath()
    'Path()
    'PATHEXT()
    'PROCESSOR_ARCHITECTURE()
    'PROCESSOR_IDENTIFIER()
    'PROCESSOR_LEVEL()
    'PROCESSOR_REVISION()
    'ProgramFiles()
    'SystemDrive()
    'SystemRoot()
    'TEMP()
    'TMP()
    'USERDOMAIN()
    'USERNAME()
    'USERPROFILE()
    'windir()
End Sub
Original Comments (3)
Recovered from Wayback Machine