|27 Sep 2011||#1|
| || |
Batch code to read, then move files from one folder to another
I'm new to batch coding, so I was hoping someone could help me out. I need to read several .txt files and search them for a specific string, lets say "key1" and "key2." If the file has key1, then it needs to be moved into directory1. If the file has key2, then it needs to be moved to directory2. There's no telling ahead of time what line the string is going to be on, so I'm guessing I could use "Find" to search for the key? Then how do I loop through all the files, read them, then sort them into the different directories?
Any help is much appreciated!
|My System Specs|
|Similar help and support threads for2: Batch code to read, then move files from one folder to another|
|Finding numerous files in a folder using a batch||Software|
|Batch File to Move a list of files.||General Discussion|
|Temp folder getting filled with batch files||General Discussion|
|Trying to use batch code to parse and archive log files... Errors...||Software|
|Batch file to move (many) duplicted folder contents - Help!!||General Discussion|
|Copy or move files using right click reg code||General Discussion|
|Batch file for moving files to folder?||General Discussion|
|Our Sites ||Site Links ||About Us ||Find Us |
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
All times are GMT -5. The time now is 01:39 PM.