How to find non-Notes files on other server?

Hi, everyone,

This is a situation. When client need restore of the database, the team who is responsible for this, creates a restore from tape in “restore” folder, but they change the file name from xxx.nsf to xxx.nsf.dad (to avoid replication to original database).

I need to be able to go and get filenames of all files in restore folder on all production servers (there are about 10 different servers).

When I use the NotesDbDirectory, it picks only databases or templates.

Is there a way to get other types of files?

Here is a code I use:

Set dbdir = New NotesDbDirectory(ServerName)

Set Sdb = dbdir.GetFirstDatabase(DATABASE)

While Not(Sdb Is Nothing)

   '... process the database

   Set Sdb = dbdir.GetNextDatabase

Wend

Any help will be appreciated.

Thanks,

Olga

Subject: How to find non-Notes files on other server?

In your Administrator client in the Files view, look at the top-right corner, you should see a drop-down menu that is defaulted to “Databases only”. Just click on that, select “Custom” from the drop-down, and in the extensions field enter ‘dad’ or ‘.dad’. See if that does anything for ya.

Subject: How to find non-Notes files on other server?

If the restore folder is available via some drive map, why not just use the Dir method? Help has an example that you could use.

I don’t know if Dir works for UNC notation.

HTH

Doug

Subject: How to find non-Notes files on other server?

Olga,

If all you are concerned about is ‘avoiding replication’ between the restored DB and current DB - before the restore team restore the .nsf set the existing DB to “Temporaily Disable Replication”

They can then restore the Db as xxx2.nsf

Then do what you need to do.

To your inital question I don’t know if Notes looks for anything other than .nsf (&.ntf) file types.

HTH.

Ads R

Subject: RE: How to find non-Notes files on other server?

Unfortunately, I am not the one who decides how to do restores (other teams are doing that). All I can try to do is to work with what is there.

Olga.

Subject: RE: How to find non-Notes files on other server?

Hi,

You can use something similar from Kenneth Axi

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/b952c25678f9fd6385256a76004a6230?OpenDocument&Highlight=0,enforce

2 ) Searches for any file on locally mapped drive (a-z). This function uses a Win32 API that will be MUCH faster than the ordinary LotusScript Dir()-command.

JYR