Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6167113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:27:20+00:00 2026-05-23T22:27:20+00:00

I am writing a program that needs to know whether a file (excel workbook)

  • 0

I am writing a program that needs to know whether a file (excel workbook) is in clearcase or not. If so I need to check it out.
Here is my code for checking out a file:

    private void buttonClicked(object sender, RibbonControlEventArgs e)
    {

        ClearCase.ClearTool checkingOut = new ClearCase.ClearTool();

        string fileLoc = Globals.ThisAddIn.Application.ActiveWorkbook.FullName;

        checkingOut.CmdExec(@"checkout """ + fileLoc + @"""");
    }

I do not want to perform the checkout unless I know if it is in Clearcase or not.
This is part of an Excel add-in.

Thank You!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:27:22+00:00Added an answer on May 23, 2026 at 10:27 pm

    The simplest way to know if a file is in ClearCase is to perform a cleartool ls aFile (ct.CmdExec("ls aFile"); with the CAL API)

    See the cleartool ls man page:

    List the VOB-resident objects and view-private objects in the current working directory.

    cmd-context ls
    Makefile@@/main/3                                   Rule: /main/LATEST
    bug.report
    cm_add.c@@/main/0                                    Rule: /main/LATEST
    

    Here bug.report isn’t in ClearCase yet: it has no selection rule associated to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a program that needs to run a java.jar server. I need
I am writing a java program that needs a file open dialog. The file
I'm writing a program that among other things needs to download a file given
I am writing a program that needs to know when the desktop wallpaper changes.
I am writing a program that needs to search a LARGE text document for
I'm writing a program that needs to print off high resolution .tiff images. The
I writing a JSP program that needs to react on an existing program. It
OK, so I am writing a program that unfortunately needs to use a huge
I'm writing a program in C# that will need to store a few Data
I'm writing a program that sends an email out at a client's specific local

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.