My suggestion for finding and moving *.txt files in a directory tree of a drive, or the entire drive, or even multiple drives with last modification date in a definite time period is:
- Start Windows Explorer.
- Click on button Search.
- Open advanced search options for finding files and folders.
- Select/enter to search for files by last modification date.
- Enter the two dates to specify time period or select the time period.
- Run the search.
- Select all found files in search result, for example with Ctrl+A.
- Press Ctrl+X to mark the found files for being cut (moved).
- Open the folder into which the files should be moved.
- Press Ctrl+V to paste the files (move them).
That's it.
Nobody needs to code a batch job for this task if this find + move files job should not be done periodically using a scheduling task.
The exact steps for doing such an advanced find for files in a definite time period with Windows Explorer depends on version of Windows. See for example the computer tips
And of course there are many freeware and shareware tools which support also finding files according to various search criterias like last modification date within a specified time period and move them.
Well, that does not really answer the question as it does not contain the batch code for doing the job. So I answer this question with another question:
Why thinking about coding a batch file for such a task hard to adapt for varying dates if dozens of GUI applications including Windows Explorer exist doing the same by simple user input with no need on coding skills and therefore very easy to use, and the find + move must be done only once or from time to time with changed criterias?