title: Catia D.S.L.S. DSLicSrv -admin Dos Utility
body: <p>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.</p>
  
  <p>Any help much appreciated.</p>
  
  <pre><code>C:
  CD\
  CD Program Files\Dassault Systemes\DS License Server\win_b64\bin
  DSLicSrv –admin
  admin &gt; c localhost 4084
  admin &gt; glu &gt;c:\temp\ListCatiaUsers.txt
  admin &gt; d
  admin &gt; quit
  CD\
  </code></pre>
  
  <p>I tried the approach below in a batch file but no success.</p>
  
  <pre><code>C:
  CD\
  CD Program Files\Dassault Systemes\DS License Server\win_b64\bin
  DSLicSrv –admin
  echo c localhost 4084|admin &gt; 
  echo glu &gt;c:\temp\ListCatiaUsers.txt|admin &gt; 
  echo d|admin &gt; 
  echo quit|admin &gt; 
  CD\
  </code></pre>