1
Answer

how to get InstanceName in advance?

reubin1108001

reubin1108001

20y
1.6k
1
I'm using Visual Studio .NET to write a program which monitors system information. As I could use items in the Windows Forms and select CategoryName, CounterName, InstanceName from Properties, VS writes the code for me, but here comes the problem. If I want to run the executable file in other machines, instanceName might be different from the machine where I write the program and it will crash. Does someone know how to solve this problem? Thanks a lot.
Answers (1)