Topic
  • 4 replies
  • Latest Post - ‏2013-04-01T20:05:16Z by brcowan
SystemAdmin
SystemAdmin
47293 Posts

Pinned topic How can I set the root directory for CmdExec

‏2013-03-08T14:50:42Z |
Hello

I've the following code snippet

Dim objCt As New ClearTool
    Dim sDesc As String
    sDesc = "desc -fmt ""%En"" oid:2c651909.df82417f.9cd7.dc:68:75:4f:67:99@myView\myVob"
    Debug.Print objCt.CmdExec(sDesc)


This code results to an error message: Unable to determine VOB for pathname "myView\myVob".

Now I change to a windows-dos-box and insert the command
cleartool -fmt "%En" oid:2c651909.df82417f.9cd7.dc:68:75:4f:67:99@myView\myVob

In this case I get the same error message

Then I change the volume to "x:" (our cc-path) and then the command
cleartool -fmt "%En" oid:2c651909.df82417f.9cd7.dc:68:75:4f:67:99@myView\myVob
returns teh correct result.

-> Do you have any idea to insert the cc root directory inside of a cleartool command?

Best regards
Wolfgang
Updated on 2014-03-26T13:41:41Z at 2014-03-26T13:41:41Z by iron-man
  • SystemAdmin
    SystemAdmin
    47293 Posts

    Re: How can I set the root directory for CmdExec

    ‏2013-03-16T14:49:57Z  
    Hi

    Do you understand the consequences? If there is no solution, CmdExec did not really work. You can use this option only for a small subset of cleartool-commands.

    Best regards
    Wolfgang
  • Tgefen
    Tgefen
    724 Posts

    Re: How can I set the root directory for CmdExec

    ‏2013-03-16T20:53:13Z  
    Hi

    Do you understand the consequences? If there is no solution, CmdExec did not really work. You can use this option only for a small subset of cleartool-commands.

    Best regards
    Wolfgang
    It seems you use Visual Basic - so just use 'chdir' command before you run cleartool.

    Regards,
    Tamir Gefen, GoMidjets
  • SystemAdmin
    SystemAdmin
    47293 Posts

    Re: How can I set the root directory for CmdExec

    ‏2013-03-21T10:18:46Z  
    • Tgefen
    • ‏2013-03-16T20:53:13Z
    It seems you use Visual Basic - so just use 'chdir' command before you run cleartool.

    Regards,
    Tamir Gefen, GoMidjets
    Hello
    > It seems you use Visual Basic

    No, I'm really using Doors-Dxl, but it is easier to explain the problem by using VBA. Dxl adds some additional problems to it.

    > so just use 'chdir' command before you run cleartool.

    This is not possible in this object. chdir is a command in a dos box.

    But I've a solution in dxl-perl but this solution is to slow, because in Doors the administrative overhead is a catatstrophe.

    And actually I've some large programms and several different calculations and so I'm lookiong for a better and faster solution - CmdExec. But it really seems that CmdExec never has been tested by IBM?

    Amazing!

    Best regards
    Wolfgang
  • brcowan
    brcowan
    749 Posts

    Re: How can I set the root directory for CmdExec

    ‏2013-04-01T20:05:16Z  
    Hello
    > It seems you use Visual Basic

    No, I'm really using Doors-Dxl, but it is easier to explain the problem by using VBA. Dxl adds some additional problems to it.

    > so just use 'chdir' command before you run cleartool.

    This is not possible in this object. chdir is a command in a dos box.

    But I've a solution in dxl-perl but this solution is to slow, because in Doors the administrative overhead is a catatstrophe.

    And actually I've some large programms and several different calculations and so I'm lookiong for a better and faster solution - CmdExec. But it really seems that CmdExec never has been tested by IBM?

    Amazing!

    Best regards
    Wolfgang
    The cleartool describe command needs a view context. This is normally supplied by the application's current working directory. Without a view context, a cmdexec that runs a describe can't resolve the name. You need to provide a view context for the describe command by changing the application's current working directory.

    =================================================================
    Brian Cowan
    Advisory Software Engineer
    ClearCase Software Advisory Team (SWAT)
    Rational Software
    IBM Software Group
    550 King St
    Littleton, MA 01460

    Phone: 1.978.899.5436
    Web: http://www.ibm.com/software/rational/support/