I am currently trying to write a batch file to export from the D.S.L.S. licence manager a list of current users using Catia. We use D.S.L.S. within our company to distribute Catia licences. The licences we use are DP2,MD2 and ST1 licences. The problem arises when I try to pass parameters in the batch file. Essentially I don't know how to do this for this dos utility. To launch the utility enter DSLicSrv -admin at the dos prompt. The c localhost 4084 connects to D.S.L.S. licence manager. The glu command essentially exports a list of current users to the ListCatiaUsers.txt file in the temp folder on the c:\ drive. The d command disconnect from the D.S.L.S. licence manager. The quit command exits from the utility. The only way I could get this does utility to work properly is entering the parameter at the keyboard. I would however like to automate this process in a batch file.
Any help much appreciated.
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\
I tried the approach below in a batch file but no success.
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\