2

我正在尝试将 shell 脚本逐行和逐个命令地转换为批处理文件。但是,我似乎无法绕过以下线路。任何帮助表示赞赏。

OPTS="%OPTS -Dlog4j.configuration=file:.\log4j.properties"
4

1 回答 1

2

我不知道 linux shell,但我认为等效的是:

Set "OPTS=-Dlog4j.configuration=.\log4j.properties"

然后你可以加载存储的...Options¿?像一个论点:

Start Application.exe %OPTS%

“.\”表示脚本的当前目录,请确保“file:.\”在 linux OS 中的含义相同。

于 2013-04-22T05:04:52.880 回答