6.8 Regenerating a Snapshot View's view.dat File

The root directory of a snapshot view contains a hidden file, view.dat. If you delete this file inadvertently, ClearCase no longer identifies the view as a ClearCase object, and you can no longer perform ClearCase operations on files or directories loaded in the view.

To Regenerate the view.dat File

  1. Open a command shell.

  2. Type this command:

  3. ccperl ccase-home-dir\etc\utils\regen_view_dot_dat.pl
    ^ [ -tag snapshot-view-tag ] snapshot-view-pathname

    For example:

    ccperl c:\atria\etc\utils regen_view_dot_dat.pl
    ^ -tag pat_v1.4_cropcircle
    ^ c:\pat_v1.4_cropcircle

    If the view storage directory is under the root directory of the view, you do not need to use the -tag snapshot-view-tag argument.