如何获取data的路径-@ConfigFile

有一个朋友问:如何获取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

 

 

你可以使用以下命令启动这些 jar 包: ``` nohup java -jar codegen-service.jar > codegen-service.log & nohup java -jar data-market-service-integration.jar > data-market-service-integration.log & nohup java -jar data-market-service-mapping.jar > data-market-service-mapping.log & nohup java -jar data-market-service.jar > data-market-service.log & nohup java -jar data-masterdata-service.jar > data-masterdata-service.log & nohup java -jar data-metadata-service-console.jar > data-metadata-service-console.log & nohup java -jar data-metadata-service.jar > data-metadata-service.log & nohup java -jar data-quality-service.jar > data-quality-service.log & nohup java -jar data-standard-service.jar > data-standard-service.log & nohup java -jar data-visual-service.jar > data-visual-service.log & nohup java -jar datax-auth.jar > datax-auth.log & nohup java -jar datax-config.jar > datax-config.log & nohup java -jar datax-eureka.jar > datax-eureka.log & nohup java -jar datax-gateway.jar > datax-gateway.log & nohup java -jar datax-tool-monitor.jar > datax-tool-monitor.log & nohup java -jar email-service.jar > email-service.log & nohup java -jar file-service.jar > file-service.log & nohup java -jar quartz-service.jar > quartz-service.log & nohup java -jar system-service.jar > system-service.log & nohup java -jar workflow-service.jar > workflow-service.log & ``` 其中,`nohup` 命令可以使程序在后台运行,并将输出重定向到日志文件中。`&` 符号表示在后台运行该命令。请确保在执行此命令之前,已经安装了 Java 运行时环境,并且当前路径下存在相应的 jar 文件。如果 jar 文件不在当前路径下,可以使用绝对路径或相对路径指定文件的位置。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值