does anyone know why this would not work (Windows 7, batch script)?
C:\testing>FINDSTR /R /N "^.*$" test.txt | FIND /C ":"
FIND: `/C': No such file or directory
FIND: `:': No such file or directory
does anyone know why this would not work (Windows 7, batch script)?
C:\testing>FINDSTR /R /N "^.*$" test.txt | FIND /C ":"
FIND: `/C': No such file or directory
FIND: `:': No such file or directory
try with :
FINDSTR /R /N "^.*$" test.txt | %windir%\system32\FIND.exe /C ":"
Meanwhile with:
for %f in (find.exe) do @echo %~dpfnx$PATH:f
(double %
for batch file) you can see which FIND.EXE
will be executed.
C:\Program Files (x86)\Git\bin\find.exe
was executed! Thanks. –
Premer © 2022 - 2024 — McMap. All rights reserved.
find
overridden somehow with anotherfind
in your path? Do you have a DOSKEY macro overridingfind
? What do you get when you runwhere find.exe
? – Covetfind
. @Tomfool - what is the output offind -h
? – JordanFINDSTR /R /N "^.*$" test.txt | %windir\system32\%FIND /C ":"
– Jordanfind -h
isFIND: Parameter format not correct
. May be you are using unix port that requires-H
(upper case) to show it's help or--help
or-help
– Jordan