SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
for %i in (javaw.exe) do @echo. %~$PATH:i