Set "FileName=dd. TXT"
Set "drivename=c"
For a % % in drivename (% %) do (if exist % % a: \ nul (for/f "delims=" % % b (' in dir/a - d/s/b "% % % % a: \ * FileName" 2 ^ & gt; Nul ') do (if/I "% % ~ NXB equ" FileName "% %" (goto A))))
A
XXXXXXXXXXX
CodePudding user response:
(if/I "% % ~ NXB equ" FileName "% %" (goto A))))If not equal? You don't do any operation
CodePudding user response:
set "FileName=dd. TXT"
Set "drivename=c"
For a % % in drivename (% %) do (if exist % % a: \ nul (for/f "delims=" % % b (' in dir/a - d/s/b "% % % % a: \ * FileName" 2 ^ & gt; Nul ') do (if/I "% % ~ NXB equ" FileName "% %" (goto A))))
C.e xe. Can't find the call C
Goto the End; After perform the C end
A
XXXXXXXXXXX
; The End; Ending tag
CodePudding user response:
Correction: before the End should be a colon :