This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Oct 3, 2014, 8:58 PM
31 Posts

Create a Database but outside of the Notes/Data

  • Category: Application Development
  • Platform: All Platforms
  • Release: 9.0
  • Role: Developer
  • Tags: Database createCopy
  • Replies: 3

I'm trying to create an archive copy of a database and have some code that looks something like this:

var fileName:String = "C:\Archive\MyArchives\SomeDatabase.nsf";

var arcDB:NotesDatabase = appDB.createCopy("", fileName);

my action runs through to completion with no errors but I can't find the Database after it is through. It does not appear to be under Data nor in the folder Archive/MyArchives in the root of C:

If I remove the C:\ from the file name it works correctly and places the database in the folder Archive\MyArchives but under Data but I don't want them under data as this can cause confusion when trying to open a database from the catalog, and opening a Backup or Archive inadvertantly could cause problem.

Oct 4, 2014, 6:11 PM
31 Posts
I have it working on a server but does not appear to be on Local copy

I missed the issue of the escape sequence so "C:\\Archive\\MyArchive\\SomeDatabase.nsf" works with a server, but with the local still does not appear to work. Having it do it on the server is good enough for right now and I will play around with it to get the local copy working later when I have time.

Mar 11, 2015, 7:52 AM
30 Posts
Don't forget those oh-so-useful .dir files...

You could create a text file, archive.dir, with contents C:\Archive\MyArchives\ in your data path

Then you can just save the file to archive\somedatabase.nsf

Mar 11, 2015, 10:06 AM
26 Posts
Not of interest but

You can create the database in the data directory, once it is done, you can call NSFDbRename (LS or java calling c API), because the NSFDbRename function use complete file path.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal