This is a question regarding CMD shell script, I have seen a script as below:
FOR %%X in (java.exe javac.exe ant.bat android.bat) do ( SET FOUND=%%~$PATH:X IF NOT DEFINED %FOUND% GOTO MISSING )
Can any one explain to me what is
Also, see this StackOverflow question which reiterates the technique and contains some discussion about it (but doesn't explain in theoretical terms what it syntactically does). There's a good discussion about
Each directory in PATH environment variable is scanned for existence of file %X, and the name of the first matching directory is saved into FOUND.