The call "RoseApp.LoadScriptModule scriptName" will load the script. The
following function checks to see if the path is defined, then checks for the
file by looking for it with an ebs or ebx type.
James.
' .ebx or .ebs should NOT be specified
Function LoadScript(script As String) As Boolean
Dim path As String
path = "$My_Scripts"
Dim pathValue As String
pathValue = RoseApp.PathMap.GetActualPath(path)
If pathValue = path Then
MsgBox path & " must be specified in Rose's path map and" &_
" point to the script directory"
LoadScript = False
Exit Function
End If
Dim scriptName As String
Dim fileName As String
scriptName = pathValue & "\" & script
fileName = scriptName & ".ebx"
If Not FileExists(fileName) Then
fileName = scriptName & ".ebs"
If Not FileExists(fileName) Then
MsgBox scriptName & " was not found"
LoadScript = False
Exit Function
End If
End If
RoseApp.LoadScriptModule scriptName
LoadScript = True
End Function
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of GELL Keith
> Sent: Thursday, January 11, 2001 9:23 AM
> To: '[EMAIL PROTECTED]'
> Subject: (ROSE) Calling scripts from inside a script
>
>
>
> Hi all.
>
> I want to write a script that calls test scripts from a given
> location,
> defined say by SCRIPT PATH.
>
> But, I would like the Script to allow the user to configure what test
> scripts are called at run time, so I need a script to elicit
> what the user
> want s to call, and then call up the scripts one by one.
>
> Now the only thing I can figure out is how to actually call
> an external
> script from inside another script, can anyone help?
>
> Thanks in advance.
>
> Keith
> **************************************************************
> **********
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages:
> http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> **************************************************************
> ***********
>
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************