I have a simple vb script (file name: wiguid.vbs) that generates a new Guid.
set obj = CreateObject("Scriptlet.TypeLib")
WScript.Echo obj.GUID
I need to call this script from a cmd batch file, store new guid in a command parameter, and pass that variable to other vb scripts. But I fail to store value generated in a vbscript to a command parameter.
Something like:
cscript wiguid.vbs
set NewGuid = '??Should get value from above script call'
cscript OtherVbScript.vbs "SET Value='%NewGuid%'"
I tried different search combinations but couldn't get any way to achieve that.
Any pointers/suggestions would be of help! thanks.