"presentation" of the numbers is the main question. How are they aquired? If you want commandline, this vbscript might do: '==== begin vbscript snippet wscript.stdout.writeline(wscript.arguments(0)/wscript.arguments(1))&":1" '===== end vbscript snippet
The vbscript that I posted uses commandline arguments. A batchfile could send the variables to the script using the commandline. Here is an example:
::===== begin batchscript test set /p number1="first number: " set /p number2="second number: " > div.vbs echo wscript.stdout.write(wscript.arguments(0)/wscript.arguments(1))^&":1" for /f %%a in ('div.vbs %number1% %number2%') do set ratio=%%a echo %ratio% ::===== end batchscript
Again, the source of the two values to be compared has yet to be determined, so I just used "set /p" and prompted for them. This batchscript writes the vbscript each time it runs, but you could circumvent that if you wanted. Or, you could do away with the batch "wrapper" altogether and just use the vbscript.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.