How to get a return value from a vbs file?
Ken Ray
kray at sonsothunder.com
Fri Sep 25 04:36:01 EDT 2009
> Where I now stuck is, that I don't know how to get back any return value
> from the vbs script file back into my rev, e.g the result of calling icacls.
> I can't just say "return" in vbs.
You use "Wscript.Echo <stuffYouWantToReturn>" at the end of the VBS file.
When you run the script file with the shell command, whatever is in
<stuffYouWantToReturn> is returned from the shell() call.
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list