ProcessorId String Correcty?
Posted: 05 Mar 2022 06:39
Hi everyone, I have a problem, with this code it should tell me that it is correct, instead it says that it is not, you have to put your processorID inside the quotes, I did not put mine because it would not make sense, someone can tell me why it does not work correctly ?
Code: Select all
@echo off
Set cpuid= wmic cpu get processorid^|more +1
%cpuid%
if NOT "%cpuid%"==" " (goto A) else (goto B)
:B
echo It worked
pause > nul
:A
echo It does not work
pause > nul