标题: [文件操作] 'findstr' is not recognized as an internal or external command?. [打印本页]
作者: ytyyutianyun 时间: 2012-9-8 20:03 标题: 'findstr' is not recognized as an internal or external command?.
本帖最后由 ytyyutianyun 于 2012-9-8 20:43 编辑
代码如下:- @echo off
- cd.>list.txt
- for /f "delims=" %%i in ('dir /a-d /b *.txt') do (echo %%i)>>list.txt
- echo.>>list.txt
-
- md "20"
- for /f "delims=" %%j in (step.txt) do (
- for /f "delims=" %%k in ('findstr /c:"%%j"
-
- list.txt') do (
- move "%%k" "20"
- )
- )
- pause
复制代码
出现“'findstr' is not recognized as an internal or external command, operable program or batch file.”,求指导,谢谢
作者: CrLf 时间: 2012-9-9 03:54
检查你的 findstr.exe 是否在 %path% 路径中
作者: ytyyutianyun 时间: 2012-9-12 11:17
本帖最后由 ytyyutianyun 于 2012-9-12 11:18 编辑
%path%
是不是系统环境变量中的PATH?
在这里没有“C:\windows\system32”
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |