如何抓取notes.ini中指定的Notes Data目录?

How to capture the Notes Data directory specified in notes.ini?

我需要获取 Notes 数据目录的值。我需要它作为我要去 运行 的预定代理。程序目录和数据目录在不同的驱动器上。

我认为以下代码可以工作,但我没有得到 return 值。

String console = session.sendConsoleCommand(服务器名, "show config Directory");

//代码运行s 但下面一行不显示任何内容

System.out.println("这是控制台值:" + console);

没有任何权限或其他错误。我错过了什么?

V/R,

凯夫

为什么要使用这个晦涩的结构?您需要另一台服务器的目录吗?

如果您需要从运行代理的服务器获取它,那么只需使用

String directory = session.getEnvironmentString("Directory", true)