Nice solution. Nice forum. Here is an alternate script to open all .txt files in C:\Test one by one with notepad.

Code:
 
# Script txtfiles.txt
cd "C:\Test" ; var str list ; lf -n "*.txt" > $list
while ($list <> "")
do
    var str file ; lex "1" $list > $file ; system ("\""+$file+"\"")
done
The script is in biterscripting ( biterscripting.com ) . You can flex the lf command to do different things.

lf -rn "*.txt"
Find files recursively in subfolders and subsubfolders.

lf -rn "*.txt" "C:\folder"
Find files in C:\folder".

lf -rn "*.txt" "C:\folder" ($fsize > 5000)
Find files whose size is greater than 5000 bytes.

lf -rn "*.txt" "C:\folder" ( ($fsize > 5000) AND ($fctime > "20090101") )
Find files whose size is greater than 5000 bytes AND whose creation time is after Jan 1, 2009.

etc.


Randi
SaswatPadhi like this