Information can easily be passed forward from one script to another, the reverse is not true, unless the information is numberic in nature, and then only one mumberic value can be returned, this value is also limited in size, I don't recall exactly what that limit is, but basically it is limited by the maximum size for a valid error number.
To send information forward, simply call the script and pass parameters to it. The second script can access the information by process it's arguments. i.e.
Argcount=Wscript.arguments.count - 1
For i = 0 To Argcount
If Wscript.arguments.item(i)="/?" Then
Goto Help
End If
Next
The only way that's built in to Windows Scripting Host to return information to the script that called the second script is to close the called script and return a single number. i.e.
'Closing code for Second Script
wscript.quit 12345
Logic can be built into the calling script to process the return code and do different things depending on the number recieved. THe code in the calling script would look something like this.
'Code from first script
ReturnCode = Shell.Run (SecondScript, 1, True)
If err.number <>0 Then
Msg= "Unable to run " &Program &vbCr &"The following error was returned:" &vbCr & err.description
Shell.popup msg,10,"Attention!",80
End If
If ReturnCode=123456 Then RunSubroutineof Choice
'etc...
Here are a few more ways to perform what you are trying to do:
Use an obscurely named registry entry or entries to store the values:
Write and read the information to a temp file.