1

我目前正在尝试编写一个批处理文件,以从 DSLS 许可证管理器中导出使用 Catia 的当前用户列表。我们在公司内部使用 DSLS 来分发 Catia 许可证。我们使用的许可证是 DP2、MD2 和 ST1 许可证。当我尝试在批处理文件中传递参数时出现问题。本质上,我不知道如何为这个 dos 实用程序执行此操作。要启动该实用程序,请在 dos 提示符下输入 DSLicSrv -admin。c localhost 4084 连接到 DSLS 许可证管理器。glu 命令实质上将当前用户列表导出到 c:\ 驱动器上 temp 文件夹中的 ListCatiaUsers.txt 文件。d 命令断开与 DSLS 许可证管理器的连接。quit 命令从实用程序中退出。我可以让这个实用程序正常工作的唯一方法是在键盘上输入参数。

非常感谢任何帮助。

C:
CD\
CD Program Files\Dassault Systemes\DS License Server\win_b64\bin
DSLicSrv –admin
admin > c localhost 4084
admin > glu >c:\temp\ListCatiaUsers.txt
admin > d
admin > quit
CD\

我在批处理文件中尝试了以下方法,但没有成功。

C:
CD\
CD Program Files\Dassault Systemes\DS License Server\win_b64\bin
DSLicSrv –admin
echo c localhost 4084|admin > 
echo glu >c:\temp\ListCatiaUsers.txt|admin > 
echo d|admin > 
echo quit|admin > 
CD\
4

1 回答 1

0

The answer to the above question is as follows below. The batch file below launches the DSLicSrv -admin utility and logs on to the D.S.L.S. licence manager in addition to that it also exports a text file ListCatiaUsers.txt to the c:\temp directory. This text file contains a list of all current Catia users accessing a licence from the D.S.L.S. licence manager at a point in time. The batch file also disconnects the user from the D.S.L.S. licence manger and quits the utility. Note in order for this batch file to work it must be run from the server where the D.S.L.S. licence manager is installed.

c:
cd\
cd program files\dassault systemes\ds license server\win_b64\code\bin
DSLicSrv -admin -run "c localhost 4084;glu >c:\temp\ListCatiaUsers.txt;d;quit" 
cd\
于 2016-01-06T11:18:32.617 回答