Custom Search

Moving Database Links

If your Lotus system has matured over a period of time, you have found that important databases need to be moved to new servers, locations, etc. The problem is how inform your user base AND remove existing bookmarks. This small piece of code used in the Database Script, using the Postopen method, makes it easier:

@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.”)
); “”)

Your thoughts, similar code, or a better way. Let me know.

[Post to Twitter]  [Post to Plurk]  [Post to Yahoo Buzz]  [Post to Delicious]  [Post to Digg]  [Post to Ping.fm]  [Post to Reddit]  [Post to StumbleUpon] 

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>