
@echo off
for %%i in (*.txt) do (
find "first phrase" "%%i" > nul && MOVE "%%i" 1
find "second phrase" "%%i" > nul && MOVE "%%i" 2
rem Add here your phrases.
)
Hope this script will be useful for you.
This is a blog of Dr.Batcher's development team. Dr.Batcher is the batch files creation and editing software providing you with the simplest way to create and edit batch files. So here you can find information on batch scripting techniques and development of Dr.Batcher.
No comments:
Post a Comment