如何使用 VB 脚本打开 2 个 Lotus Notes 实例

发布于 2024-08-02 15:49:13 字数 249 浏览 9 评论 0原文

我必须通过 LAN 连接到 1 个邮件服务器以进行内部工作,并通过 VPN 连接连接到 LAN 之外的第二个邮件服务器才能完成我的工作,并且这两个服务器都有我无法访问的信息我的局域网。

我有 2 个 Lotus Notes ID 文件和密码,并且想要一个 VB 脚本来创建第二个 Lotus Notes 图标,启动时会提示我登录到我的第二个邮件服务器,并允许我运行 2 个访问两侧的 Lotus Notes 实例栅栏的。

有人可以帮我创建这样的脚本吗?

I am having to connect to 1 mail server via LAN for my internal work and to a second mail server outside of my LAN but through a VPN connection in order to do my work as well as both sides of this has information that I cannot access from my LAN.

I have 2 Lotus Notes ID files and passwords and would like a VB Script that will create a second Lotus Notes icon that when launched will prompt me to login to my second mail server and will allow me to run 2 instances of Lotus Notes accessing both sides of the fence.

Can someone help me with creating such a script?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦初启 2024-08-09 15:49:13

我无法帮助编写脚本(阅读:我太懒了),但我自己手动完成了这个技巧相当多。我的做法如下:

  1. 您需要两个数据目录。这是因为一旦第一个实例访问了您的names.nsf、bookmarks.nsf等...它们将被锁定,第二个实例将无法访问它们(有时我将常见的数据库放入它们自己的单独目录中,并且将它们链接到数据目录中)
  2. 复制你的notes.ini(将其命名为与你的第二个实例的用途很容易相关的东西)并编辑“Directory=”行以指向你的第二个数据目录。
  3. 找到你的笔记图标(我假设这里是Windows)并编辑快捷方式以指向nlnotes.exe而不是notes.exe。
  4. 将命令行选项 `=` 添加到您的图标快捷方式(更多详细信息[此处][1])
  5. 复制您的快捷方式并编辑命令行选项以读取 `=`
  6. 启动两个实例并验证他们的行为举止。至少您需要创建不同的位置文档,并定义各自的邮件服务器并默认使用各自的 ID。

请注意,上面的链接提供了一些有关添加特定命令选项以自动打开各种数据库的提示。

对于脚本,完成上述操作后,您可能实际上并不需要它,但如果您觉得需要,那么从两个快捷方式发出命令行应该就足够了(我认为)。

一些注意事项

  • 我只使用基本(非 Eclipse)Notes UI 完成过此操作。如果您想要 Eclipse UI 的两个实例,请不要屏住呼吸。
  • 如果您复制数据目录,则该目录中的数据库将是原始数据库的副本。如果您使用不同的 ID 并且不漫游,那么这不是问题。否则,请小心行事,否则您可能会发现有趣的事情,例如一个名称的更改。nsf 突然出现在另一个客户端中等(请记住,两个客户端不会直接相互复制,但可能都通过服务器进行复制)。

我认为这涵盖了它。如果您需要澄清任何内容,请在本文下发表评论。

编辑

grrr,链接不起作用。 这里就是了。

I can't help with the script (read: I'm too lazy) but I manually pull this trick myself quite a bit. Here's how I'd go about it:

  1. you need two data directories. This is because once the first instance has hit your names.nsf, bookmarks.nsf etc ... they'll be locked and the second instance won't be able to access them (Sometimes I put common dbs into their own separate directories and dirlink them into the data directory)
  2. copy your notes.ini (call it something easily associated with your second instance's purpose) and edit the line `Directory=` to point to your second data directory.
  3. find your notes icon (I'm presuming Windows here) and edit the shortcut to point to nlnotes.exe rather than notes.exe.
  4. add the command-line option `=<path_to_your_main_ini_file>` to your icon shortcut (more details [here][1])
  5. copy your shortcut and edit the command-line option to read `=<path_to_your_second_ini_file>`
  6. launch both instances and verify they behave themselves. At the very least you'll want to create different location documents with the respective mail servers defined and defaulting to the respective ids.

Note the link above has some tips about adding specific command options to auto-open various databases.

With respect to the script, you may not actually need it once you've done the above but if you feel you do then issuing the command lines from the two shortcuts should be sufficient (I think).

Some Caveats

  • I've only ever done this with the basic (non-eclipse) Notes UI. Don't hold your breath if you want two instances of the Eclipse UI
  • If you copy your data directory then the databases in that directory are replicas of the databases in the original. Not a problem if you're using different ids and not roaming. Otherwise tread carefully or you may find funny things like changes to one names.nsf cropping up in the other etc (bearing in mind the two clients won't directly replicate with each other but could both be replicating with a server).

I think that about covers it. Pop a comment under this post if you need anything clarified.

EDIT

grrr, the link didn't want to work. Here it is.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文