有人可以帮我写这个批处理文件吗?
答案 0 :(得分:1)
第一点:
if not exist "copy\file.csv" copy "original\file.csv" "copy\file.csv"
第二点:
@echo off
( for /f "delims=" %%i in (file.txt) do (
findstr /C:"%%i" file.OK >nul || echo %%i
)
)>out.txt
伪代码以便更好地理解:
For each line in file text do:
Does this line exist in file.OK? If not, write the line...
...to out.txt