I am trying to retrieve the Number of CPUs and Cores per CPU using Command Prompt. I have executed the following command:
wmic cpu get NumberOfCores, NumberOfLogic
Based upon your comments - your path statement has been changed/is incorrect or the path variable is being incorrectly used for another purpose.
path