To the Top


Last Modified: October 30 2020 14:33:16
File:  root - programs - 80x86_batch - 2012 - which.bat
File Size: 0.39KB


  1. @echo off
  2. rem https://helloacm.com, 25-May-2012
  3. if [%1]==[] goto USAGE
  4. :LOOP
  5. if [%1]==[] goto END
  6. :CHECK
  7. setLocal
  8. set Paths=.;%PATH%
  9. for %%E In (%PATHEXT%) Do (
  10. for %%I In ("%~n1%%E") Do (
  11. if not "%%~$Paths:I"=="" echo %%~$Paths:I
  12. )
  13. )
  14. EndLocal
  15. Shift
  16. goto LOOP
  17. :USAGE
  18. echo %0 [Executable1] [Executable2] ..
  19. :END
  20.  

Comments (0)

    Be the first one to comment this page !


Page Edited: May 11 2024 14:36:49 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />