Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

batch find command not working

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
like image 866
Fractal Avatar asked Oct 28 '13 18:10

Fractal


1 Answers

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.

like image 120
npocmaka Avatar answered Nov 18 '22 00:11

npocmaka