title: How to return value from vb script to command variable?
body: <p>I have a simple vb script (file name: wiguid.vbs) that generates a new Guid.</p>
  
  <pre><code>set obj = CreateObject("Scriptlet.TypeLib")  
  WScript.Echo obj.GUID
  </code></pre>
  
  <p>I need to call this script from a cmd batch file, store new guid in a command parameter, and pass that variable to other vb scripts.
  But I fail to store value generated in a vbscript to a command parameter.</p>
  
  <p>Something like:</p>
  
  <pre><code>cscript wiguid.vbs 
  set NewGuid = '??Should get value from above script call'
  cscript OtherVbScript.vbs "SET Value='%NewGuid%'"
  </code></pre>
  
  <p>I tried different search combinations but couldn't get any way to achieve that.</p>
  
  <p>Any pointers/suggestions would be of help!
  thanks.</p>