I have a batch script that I created which works fine on Windows XP but faults on Windows 7.
The script basically finds out what the OS is.
wmic os get | find "Windows XP">nul
if %ERRORLEVEL% == 0 goto winxp
wmic os get | find "Windows 7”>nul
if %ERRORLEVEL% == 0 goto win7
Thing is, this works fine on Windows XP but not on Windows 7. Windows 7 throws the following error:
FIND: Parameter format not correct
So my question is, was the find utility changed?