I am trying to write batch to export the items in HKLM\Software\Microsoft\Windows\CurrentVersion\Run and HKCU\Software\Microsoft\Windows\CurrentVersion\Run to a text file then to count the number of returned items and display the number.
Example: It returns Google Chrome REG_SZ xxxdataxxx to the text file then I just want it to count the instances of returned items, in this case it would be 1 item.
Thanks!