Web tuning project - getting the name of the current machine

I have a web configuration project with a custom screen that asks for the name of the machine. Is there anyway a prepopulation of this field with the name of the current computer?

In the event that I need it, just turning on "Localhost", I do not meet my requirements.

"Environment.MachineName" will return the machine name in the code block, which would be nice if I needed it in a user action. But it seems that user actions are not exaggerated until you complete the installation wizard ... Therefore, I cannot use it. Anyway, let me know what you think.

+3
source share
4 answers

, , Web Setup , , . , , :

  • LOCALHOST
  • , ,
  • exe/ script, .
  • (: )

, , , , , , .

+2

, -. , "Environment.MachineName".

+1

System.Environment.MachineName

0
source

Do you have access to environment variables? You can rate %COMPUTERNAME%.

0
source

Source: https://habr.com/ru/post/1707831/


All Articles