문제

I'm looking to move .txt files from a folder containing many .txt files.

But only .txt files that start with string 'settlement-id' or contains 'settlement-id'.

Preferably a .bat file.

도움이 되었습니까?

해결책

A way to do it :

@echo off
for /f "delims=" %%a in ('dir *.txt /b/a-d ^| find /i "settlement-id") do copy "%%a" "YOUR_PATH"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top