Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Calling scripts from other script?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,30194
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Calling scripts from other script?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Calling scripts from other script? - 1/23/2006 6:03:54 AM   
  Enra

 

Posts: 9
Score: 0
Joined: 1/16/2006
Status: offline
 We are making a project of vbscripts with Test Complete and we want to run scripts one after other, and take the results from the previously executed as the input for the next one in list..

We tought we can make a "general script" who called the other scripts in order, and read data with global variables.. is it possible? thank you so much!
 
 
Post #: 1
 
 RE: Calling scripts from other script? - 1/23/2006 6:16:15 AM   
  ehvbs

 

Posts: 2170
Score: 50
Joined: 6/22/2005
From: Germany
Status: online
Hi Enra,

how to implement the communication between scripts depends on the method used by
the main script to 'call' his children. If you plan to use WshShell.Run/Exec, then global
variables are out - you can use StdOut/StdIn or a file/database to exchange information.
If you want to use glbal variables, you'll have to load/Execeute[Global] the child
scripts into the namespace of the mother script.

(in reply to Enra)
 
 
Post #: 2
 
 RE: Calling scripts from other script? - 1/24/2006 1:33:12 AM   
  Enra

 

Posts: 9
Score: 0
Joined: 1/16/2006
Status: offline
thanks ehvbs!

we will keep an eye on that!

(in reply to Enra)
 
 
Post #: 3
 
 RE: Calling scripts from other script? - 1/24/2006 1:59:52 AM   
  ginolard


Posts: 1051
Score: 21
Joined: 8/10/2005
Status: offline
Alternatively you could cheat and have each script write its results to environment variables which are then read and updated by the next script.

(in reply to Enra)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Calling scripts from other script? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts