Board logo

标题: [文件操作] '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 编辑

代码如下:
  1. @echo off
  2.   cd.>list.txt
  3.     for /f "delims=" %%i in ('dir  /a-d /b  *.txt') do (echo %%i)>>list.txt
  4.     echo.>>list.txt
  5. md "20"
  6.         for /f "delims=" %%j in (step.txt) do (
  7.             for /f "delims=" %%k in ('findstr /c:"%%j"
  8. list.txt') do (
  9.             move "%%k" "20"
  10.         )
  11.     )
  12.     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://bbs.bathome.net/) Powered by Discuz! 7.2