Search found 1 match

by MiniMax
06 Dec 2015 19:50
Forum: DOS Batch Forum
Topic: Searching user, System for built-in cmds / 'where' cmd for XP
Replies: 11
Views: 10636

Re: Call command - accidental path interference

I am sure I am missing something, but what is wrong with using:

Code: Select all

set name=where
%WINDIR%\System32\where.exe %name%

Or "simply":

Code: Select all

set name=where
for %X in (%PATHEXT%) do @for %F in (%name%%X) do @if exist %~dp$PATH:F\%F echo %~dp$PATH:F\%F