小编mak*_*rni的帖子

findstr 输出到文件的问题

我正在尝试执行以下命令

findstr /RC:"h25v06.*hdf\"" "index.html" >temp.txt
Run Code Online (Sandbox Code Playgroud)

跟踪输出

index.html:<img src="/icons/unknown.gif" alt="[   ]"> <a 
 href="MOD13Q1.A2018257.h25v06.006.2018282132046.hdf">
FINDSTR: Cannot open >temp.txt
Run Code Online (Sandbox Code Playgroud)

它不会将输出保存到 temp.txt 其他命令,例如

dir * >list.txt
Run Code Online (Sandbox Code Playgroud)

工作正常

batch-file findstr

3
推荐指数
1
解决办法
6683
查看次数

标签 统计

batch-file ×1

findstr ×1