So i'm just a beginner at batch scripting but I'm completely confused on this batch lesson. I'm learning from the book Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools. Here is the example script they provide in the book:
@rem Example file which.bat @echo off if "%1" == "" ( echo Usage: which command echo Locates the file run when you type 'command'. exit /b ) for %%d in (. %path%) do ( if "%~x1" == "" ( rem the user didn't type an extension so use the PATHEXT list for %%e in (%pathext%) do ( if exist %%d\%1%%e ( echo %%d\%1%%e exit /b ) ) ) else ( rem the user typed a specific extension, so look only for that if exist %%d\%1 ( echo %%d\%1 exit /b ) ) ) echo No file for %1 was found
What I don't get is why I'm getting the error \Intel\OpenCL was unexpected at this time when on another desktop the path is revealed without any problems. Also I got to this error after uninstalling HeciServer from Intel which gave the error \Intel\iCLS was unexpected at this time.
Any help would be greatly appreciated.