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

Version Path
automate-it-0.9.2 helpers/which.cmd
automate-it-0.9.1 helpers/which.cmd
automate-it-0.9.0 helpers/which.cmd
automateit-0.71221 helpers/which.cmd
automateit-0.71112 helpers/which.cmd
automateit-0.71219 helpers/which.cmd
automateit-0.71220 helpers/which.cmd
automateit-0.71226.1 helpers/which.cmd
automateit-0.80116 helpers/which.cmd
automateit-0.80624 helpers/which.cmd
automateit-0.71230 helpers/which.cmd
automateit-0.71226 helpers/which.cmd