How do I return an integer value from VBScript to Batch file?
<p>I tried the code below but it does not work:</p>

<pre><code>for /f "usebackq tokens=*" %%a in (`CSCRIPT "C:/../myvbs.vbs"`) do set num=%%a

echo %num%
</code></pre>

<p>In the <code>myvbs.vbs</code> code, I am passing the number as follows:</p>

<pre><code>wscript.echo number
</code></pre>