At the beginning of your script,
use
Wscript.Echo <your message>
but you should use cscript host (cscript //h:cscript).
It will show the message on command prompt.
The following syntax is wrong, is there anyone know how
to define a function with optioanl arguments and
default arguments?
Function f(str1, optional str2)
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.