To work with PathMaps one would use the PathMap methods, AddEntry,
DeleteEntry, GetActualPath,
etc.
Dim pathMap As Pathmap
Dim pathMapExists As Boolean
Set pathmap = RoseApp.Pathmap
pathMapExists = pathmap.HasEntry("$SCRIPT_PATH")
If pathMapExists Then
NewDirectory$ = pathmap.GetActualPath("$SCRIPT_PATH")
msgbox NewDirectory$
ChDrive NewDirectory$
ChDir NewDirectory$
Else
MsgBox "Error: Must specify SCRIPT_PATH in Rose's path map"
Exit Sub
End If
Patrick Kennedy
Rational Support
-----Original Message-----
From: Ronald W Townsen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 8:50 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Access to Virtual Path Maps from Rose Script
Does anyone know how to access Virtural Path Maps from Rose Script? (ie
how can I get what the definition is for $CURDIR?)
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
* Only plain-text messages are supported.
* HTML or Rich-Text messages may be rejected.
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
* http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* 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
* Only plain-text messages are supported.
* HTML or Rich-Text messages may be rejected.
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
* http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
* To: [EMAIL PROTECTED]
* Subject: <BLANK>
* Body: unsubscribe rose_forum
*************************************************************************