A 90-byte “whereis” program

Raymond Chen

Raymond

Sometimes people try too hard.

You can download a

C# program to look for a file on your PATH
,
or you can use a 90-character batch file:

@for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT "%%~$PATH:i"=="" echo %%~$PATH:i
Raymond Chen
Raymond Chen

Follow Raymond   

0 comments

Comments are closed.