Skip to content

Instantly share code, notes, and snippets.

@patrickmmartin
Created January 8, 2012 20:24
Show Gist options
  • Save patrickmmartin/1579552 to your computer and use it in GitHub Desktop.
Save patrickmmartin/1579552 to your computer and use it in GitHub Desktop.
simplest windows whereis batch
@echo. %~$PATH:1
@patrickmmartin
Copy link
Author

locates executables on the path
needs the full filename: i.e whereis notepad.exe
prints blank when no match is found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment