其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
如何获取data的路径-@ConfigFile

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

有一个朋友问:如何获取data目录的路径

经查帮助:发现@ConfigFile 可以获取notes.ini的绝对路径

通过解析该路径可以获取lotus\domino\data或lotus\notes\data的绝对路径

帮助里:

@ConfigFile (适用于R6以上版本)

Returns the file path for the initialization file for Lotus Notes (notes.ini).
Note  This function is new with Release 6.
Syntax
@ConfigFile
Return value
notes.ini path
String. Returns the file path to the notes.ini initialization file.
Usage
When the formula is executed on the Notes client,

     it returns the filename and path of the notes.ini initialization file for the Notes client.

 When the formula is executed on the server or Web server (when accessed in a Web page, for example), it returns the filename and path of the notes.ini initialization file for the server.

如果运行在客户端,返回的是客户端的notes.ini路径

如果是在服务器,或是通过web运行,返回的是服务器的notes.ini的路径

还有一个方法

可以通过注册表获取lotus的路径,但是这种方法有一个问题:如果lotus是通过安装的,可以获取,不是安装的,是不能获取的,

最好的方法是还是通过@ConfigFile

 

 




相关文章

相关软件