Examples: AllEntries property (NotesView - LotusScript®)
This script will get all the entries in the By Category view of the current database and put them in the Cat2 folder.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
Set vc = view.AllEntries
Call vc.PutAllInFolder("Cat2")