Here are two very simple examples.
Say I want to do a calculation from DOS using VBScript:
Code: Select all
cscript math.vbs //nologo 100*5
math.vbs:
Code: Select all
wscript.echo eval(wscript.arguments(0))
Say we want do to something with variables:
Code: Select all
cscript cake.vbs //nologo banana
cake.vbs:
Code: Select all
chocolatecake="yum chocolate"
bananacake="yum bananas"
wscript.echo eval(wscript.arguments(0)&"cake")
Is there a proper way to do these? Or is this right?
Thanks!