cricel
02-06-2003, 08:07 AM
I want to run two scripts that would look something like this:
------------
'first.vbs
myVar = "test"
'???call second.vbs
-----------
'second.vbs
WScript.echo myVar
-------------
The idea being that the first script calls the second script and myVar gets carried along. However, I am looking for something a little stronger than just opening a new process: I do not want to use Exec or anything like that -- I do not want to run the second script and then return to the first script -- I want to directly change what script I am running and bring all the variables I am using along with me. I would like to avoid using arguments (command line or otherwise) if at all possible (in case I need to take a lot of variables, arrays or whatever, with me).
Thanks.
------------
'first.vbs
myVar = "test"
'???call second.vbs
-----------
'second.vbs
WScript.echo myVar
-------------
The idea being that the first script calls the second script and myVar gets carried along. However, I am looking for something a little stronger than just opening a new process: I do not want to use Exec or anything like that -- I do not want to run the second script and then return to the first script -- I want to directly change what script I am running and bring all the variables I am using along with me. I would like to avoid using arguments (command line or otherwise) if at all possible (in case I need to take a lot of variables, arrays or whatever, with me).
Thanks.