Lotus script move a doc to another folder

Any one knows if in lotus script I want to move my currrent doc to anther folder?

Dim doc1 As notesdocument

Dim doc2 As notesdocument

Set db = s.currentdatabase

Set view = db.GetView( “XYZ” )

Set doc1 = view.GetFirstDocument

Set doc2 = view.GetNextDocument( doc1 )

Then I want to move doc2 to another folder

Thanks.

Greg

Subject: lotus script move a doc to another folder

try adding

Call doc2.PutInFolder( “name of folder” )

Subject: RE: lotus script move a doc to another folder

also, if you want “move” a doc from 1 folder to another, in addition to PutInFolder to add the doc to the destination folder you’d also have to use RemoveFromFolder to remove the doc from the source folder.