Lotus domino–>Database Redirect

This is used when you want to move the datbase to another server:

Add the below script  in the database script scetion of Notes database

@If( !(@Contains(@Subset(@DbName; 1);”old server name here”)); @Do(

@PostedCommand([FileCloseWindow]);

@PostedCommand([FileDatabaseRemove]);

@PostedCommand([FileOpenDatabase];”new server name here”:”directory\\db_name_here.nsf”);

@PostedCommand([AddBookmark]);

@Prompt([Ok];”Database Moved To A New Location”;”The ” + @DbTitle + “database has been moved to a new location. You will be automatically redirected to the new location.”+ @Char(13) + @Char(13) +”Please click Yes in the next window (it will say ”Remove selected items?”) You will only be asked to do this once for this database.”)

);””)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s