Sha256: a0d5bcb849da64d3831e71cfa3652fdc38c4af59f72e12a9333b96d15e391292
Contents?: true
Size: 402 Bytes
Versions: 12
Compression:
Stored size: 402 Bytes
Contents
@ rem "which" workalike for Windows. Searches current directory and PATH for all extensions, stops after first match, and returns meaningful exit value for "system" or "ERRORLEVEL" checks. @setlocal @set P2=.;%PATH% @for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT "%%~$P2:i"=="" echo %%~$P2:i && goto end @rem REM This exits the shell on failure, so don't use it directly @exit 1 :end
Version data entries
12 entries across 12 versions & 2 rubygems