Move database by OS via lotuscript

Hi,

How to moving a database file from one folder to another folder by using Lotus Script ?

Maybe using OS command in LotusScript but I’m not an expert to do that, Is it possible?

Ex: move c:\data\abc.nsf to c:\data\newlocation\abc.nsf

some example is highly appreciated.

Thanks,

Subject: Move database by OS via lotuscript

hi,

you could try a FileCopy statement , or CreateCopy method Look in the designer help

or use the CopyFile (look on google)

Ex: dim fso as variant

set fso = createobject(“scripting.FileSystemObject”)

fso.copyFile SOURCE, DEST, True

set fso = nothing

JYR

Subject: Move database by OS via lotuscript

If C:\Data is your server root directory, then you can go into the Lotus Administrator and do the move. Look in the Admin Help for details. "Moving databases using the Administration Process "

“To move a database to a folder below the data folder, type the folder name, backslash, and then the file name – for example, JOBS\POSTINGS. If the specified folder does not exist, Domino creates it for you.”