"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py

__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh


# Will display a window with available counters.  Click add to print out counter name.
def print_counter(counter):
    print counter

win32pdh.BrowseCounters(None, 0, print_counter, win32pdh.PERF_DETAIL_WIZARD, "Counter List")
"""counterid - Simple utility to discover perfmon counter paths"""
# pip install pyinstaller
# Compile to EXE using pyinstaller.exe -F counterid.py

__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh


# Will display a window with available counters.  Click add to print out counter name.
def print_counter(counter):
    print(counter)


win32pdh.BrowseCounters(None, 0, print_counter, win32pdh.PERF_DETAIL_WIZARD, "Counter List")
Update to make compatible with Python 3
Update to make compatible with Python 3

- """counterid - Simple utility to discover perfmon counter paths"""
+ """counterid - Simple utility to discover perfmon counter paths"""
+ # pip install pyinstaller
- # Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py
+ # Compile to EXE using pyinstaller.exe -F counterid.py
- 
+ 
- __author__ = 'scottv@rbh.com (Scott Vintinner)'
+ __author__ = 'scottv@rbh.com (Scott Vintinner)'
- import win32pdh
+ import win32pdh
- 
- 
+ 
+ 
- # Will display a window with available counters.  Click add to print out counter name.
+ # Will display a window with available counters.  Click add to print out counter name.
- def print_counter(counter):
+ def print_counter(counter):
-     print counter
+     print(counter)
- 
+ 
+ 
  win32pdh.BrowseCounters(None, 0, print_counter, win32pdh.PERF_DETAIL_WIZARD, "Counter List")
Update to make compatible with Python 3
## Code Before:
"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py

__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh


# Will display a window with available counters.  Click add to print out counter name.
def print_counter(counter):
    print counter

win32pdh.BrowseCounters(None, 0, print_counter, win32pdh.PERF_DETAIL_WIZARD, "Counter List")
## Instruction:
Update to make compatible with Python 3
## Code After:
"""counterid - Simple utility to discover perfmon counter paths"""
# pip install pyinstaller
# Compile to EXE using pyinstaller.exe -F counterid.py

__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh


# Will display a window with available counters.  Click add to print out counter name.
def print_counter(counter):
    print(counter)


win32pdh.BrowseCounters(None, 0, print_counter, win32pdh.PERF_DETAIL_WIZARD, "Counter List")