Below are three variables I declare and initialize for most of my applications.  I generally use these for logging purposes.

Below is a simple method to display these values. Note: the “\t” string value is interpreted as a tab.

Output from the method above:

cStartupInfo

 

3 Comments

  1. javhd3k.com August 7, 2017 at 1:52 am

    All of these three get me the server name and not the clients machine which is accessing the page.

     
    • Cody February 18, 2018 at 8:26 pm

      Sorry for the late reply. The computer info doesn’t work for web apps; these only apply to the machine the code is running on.

       
  2. pinsappolice.com September 23, 2017 at 10:52 pm

    In computer settings there s a section for Computer Name and Full Computer Name–this is the only way I ve found for getting the Full Computer Name when everyone else just gives the Computer Name.

     

Leave a Reply

Your email address will not be published. Required fields are marked *

 

 

*