[英]The system cannot find the path specified - Batch file
I was using the below batch script to search the list of IDs(in a text file) in multiple text files. 我正在使用下面的批处理脚本在多个文本文件中搜索ID列表(在一个文本文件中)。 It was working fine. 工作正常。 But today I am getting the Error The system cannot find the path specified. 但是今天我遇到了错误。系统找不到指定的路径。 when I run the same batch script. 当我运行相同的批处理脚本时。 I cross verified the paths and paths are corerect. 我交叉验证了这些路径,并且这些路径是正确的。 Can anyone help me to fix this. 谁能帮我解决这个问题。
Batch Script I used 我使用的批处理脚本
@echo off
setlocal enableextensions disabledelayedexpansion
set "manifest_folder=\\vfiler-padhu\padhu\*.txt"
set "file_list=\\vfiler-padhu\padh\File_list.txt"
set "tmpFile=\\vfiler-padhu\padh\tmpFile.txt"
(for /f "usebackq delims=" %%a in ("%file_list%") do (
set "found="
for /f "delims=" %%b in ('findstr /l /m /c:"%%a" "%manifest_folder%"') do (
echo %%a is found in %%~nxb
set "found=1"
)
if not defined found (
echo %%a is not found
)
)) > "%outputFile%"
Thanks in advance 提前致谢
outputFile
is not defined; outputFile
未定义; tmpFile
is unused. tmpFile
未使用。 Otherwise, seems fine. 否则,似乎很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.