Close Rose and edit the rose.mnu file (located in Rose's 
home directory).  Add something along the following lines:

Option "Execute myfile.bat"
{
exec c:\bat_dir\myfilie.bat argument1
}


See on line help,

 Menu Actions
 ...
 exec

 Exec pathname [arg2 [arg3 ...[arg10]]] 
 Executes the program or shell script contained in the file designated by 
 program-name. (If the program is not located in the current directory, it 
 must be in a directory in the execute path.).If the final argument is of 
 the form '-F<filename>' then a file named <filename> is created (if it 
 does not already exist). All arguments, except the last one are written 
 to the file, and <filename> is passed as the sole argument to 'program.' 
 Notes:�        F must be uppercase.�   
 It is up to 'program' to delete the file.�     
 To pass a string beginning with '-F' as the final parameter of an exec 
 action, use '--F'. (The character '^' does NOT work in this case.)


and

Customizing Rational Rose Menus


Patrick Kennedy
 Rational Support


                -----Original Message-----
                From:   Girish Dadlani [mailto:[EMAIL PROTECTED]]
                Sent:   Tuesday, October 09, 2001 11:51 AM
                To:     '[EMAIL PROTECTED]'
                Subject:        (ROSE) How do I  create a menu item which
will run a batch file


                Help,
                I want to create a menu Item in Rational Rose (2000) 
                which will run a batch file. Also if I could pass the name
                of the model to this batch file that would be great. 

                Thanks 
                - Girish 

        
************************************************************************
                * 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/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
*
* Admin.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
*
*************************************************************************

Reply via email to