So I have alot of .txt files. I need for it to move txt files to a certain folder if they have more than 1 line. That is,
Text text text
Blah blah blah
But leave it alone if it's just
Text text text
Any suggestions on how to do this? This is on Windows XP if that helps. Thanks!
EDIT: Thanks John for your efforts. Figured out a way to do it in PowerShell
# Specify folder name that will contain the filtered .txt files
$goodFolder = "Filtered"
get-childitem *.txt | foreach ($_) {
$a = get-Content $_.fullname | Measure-Object
# If more than one line is found in text file, move it. Otherwise, leave it alone
If ($a.Count -gt 1) { # If there is more than one line found in txt file
Move-Item $_.fullname $goodFolder # Then move it to a folder with text files with more than 1 line
}
}