求教怎样简便地查到notes服务器的数据库路径,比如查询哪个配置文件信息即可,或什么命令即可。
我人肉翻了些文件,没找到,注册表也没搜到,命令的话,报错,虽然是官方命令……以下3条都报错。
> help
DB2 DB2 specific information
FILEPATH List catalog entry for DB2NSF [enter
ame relative to data directory]
INFO DB2 settings related to DB2-enabled ser
INFO Get DB2 Group information
只好请教大家了。因为我的环境不能下载,唯一的domino server的数据库又是装的本地默认路径(..\Notes\data\mail),故不能确定当数据库在远程路径时,从哪儿看路径。
这个是服务器端运行的情况
Lotus Script
使用代理将安全级别调为最高,然后使用Curdir()方法可以返回服务器notes.ini所在的目录。
Java方法
/* 获取数据目录地址 */
public String getCurrentPath() {
File directory = new File(\"\");
try {
return directory.getCanonicalPath();
} catch (IOException e) {
e.printStackTrace();
}
return \"\";
}
服务器端也可以读取notes.ini配置DIrectory
NotesSession.GetEnvironmentValue(\"Directory\")
如果是数据库相对于数据库目录的路径,可以使用NotesDatabase的FilePath属性获取。
收起