有谁知道为什么这不起作用(Windows 7,批处理脚本)?
C:\testing>FINDSTR /R /N "^.*$" test.txt | FIND /C ":"
FIND: `/C': No such file or directory
FIND: `:': No such file or directory
最佳答案
尝试:FINDSTR /R /N "^.*$" test.txt | %windir%\system32\FIND.exe /C ":"
同时:for %f in (find.exe) do @echo %~dpfnx$PATH:f
(批处理文件为双%
),您可以看到将执行哪个FIND.EXE
。