How to get InstanceName in advance?
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.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

jiggleslupiniv59 reputationPosted Mar 10, 2004, 6:30 PM EST