photron/msys_setup — Issue #2: Use batch trick to detect wget.exe in path
Author: voltagex
Created: 2012-01-08 10:37:23+00:00
State: open

So I don't have to copy wget.exe to the directory if it already exists -

for %i in (wget.exe) do @echo. %~$PATH:i

will return a full path to wget.exe if it is found

from there you could either copy that wget.exe to the working directory, or use it in your scripts.