look for given .exe in PATH


/ Published in: DOS Batch
Save to your folder(s)

I'm always forgetting the syntax for this, and finding it is hard because the key words apply to so many different uses that aren't this one


Copy this code and paste it in your HTML
  1. @echo off
  2. for %%f in (foobar.exe) do (
  3. if exist "%%~dp$PATH:f" echo %%f located at "%%~dp$PATH:f"
  4. )

URL: http://www.ss64.com/nt/syntax-args.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.