(view source code of which.bat as plain text)
:: Command line error check:
:: Check PATH length:
:: The actual program:
:: PATH length error message:
ECHO Sorry, your PATH environment variable is too long to
ECHO be handled by this batch file.
ECHO The 127 character command line limit was exceeded
ECHO when just testing.
:: Help screen:
ECHO WHICH, Version 1.00
ECHO Written by Rob van der Woude
ECHO Usage: WHICH program_name
ECHO You may specify program_name with or without extension,
ECHO but without a drive or path.
ECHO Spaces or wildcards aren't allowed either.
ECHO Limitation: This batch file has problems handling long
ECHO PATH variables; it will say so, however,
ECHO when it encounters this problem.
page last modified: 2023-03-10