Today I needed to know where a command line executable was running from – msbuild.exe to be precise. My path environment variable is extremely long on my dev box, so I just wanted a quick way to find out where the exe would be run from. The following does exactly what I needed;
for %f in (msbuild.exe) do echo %~$PATH:f
And the output?
Just what I needed :)
thanks!
ReplyDelete