santasnotreal
New member
- Local time
- 10:16 AM
- Messages
- 1
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!
Any help is much appreciated!
My Computer
- OS
- Windows 7 Professional x64
- CPU
- Intel Core I7-2720qm
- Memory
- 8gb @ 1333mhz
- Graphics Card(s)
- Nvidia Geforce 460m GTX
- Monitor(s) Displays
- 15.6" 1080x1920 hd
- Hard Drives
- Samsung 128gb ssd