Forum Discussion

VirginiaSus3's avatar
VirginiaSus3
Occasional Contributor
2 years ago

How to call only a part of the procedure into another vbscript?

I've a script named script 1 that creates a text file and stores some string values into it. I need to call this script script 1 into another script file named script 2 but only part of it (script 1). I don't want to call the part of the script (script 1) that will store string values. OneCognizant Cognizant Login

How can I call only part of the script 1 into script 2? I'm using TestComplete to run these scripts.  

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    You can break out the part that creates a text file and make it script 3, then call script 3 from both script 1 and script 2.