1

I got a mission to separate the view prefix and VOB path. i.e. get the VOB + file path for both dynamic and snapshot views on Windows.

e.g. for all the following examples, I have to get this: \vob\folders\...\filename

Dynamic views:

  • M:\view-tag\vob\folders...\filename
  • T:\vob\folders...\filename

Snapshot views:

  • C:\users\bob\documents\cc\view-tag\vob\folders...\filename
  • \\hostname\shared-folder\view-tag\vob\folders...\filename

1 Answers1

0

Simply start anywhere in your view and type cleartool pwv:

cleartool pwv -root

That using:

-root

Returns the root directory path of the current working view.
This root is the portion of an element's absolute path that precedes the VOB tag.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Does it always work with dynamic views? If I cd to T:\vob and run 'cleartool pwv -root', it returns nothing –  Dec 02 '14 at 19:56
  • @user1762109 Only with dynamic view path starting with `M:\` (the official MVFS mount point). `T:\` is just a windows `subst`, a way to make the path shorter. See for instance http://stackoverflow.com/a/2062854/6309. – VonC Dec 02 '14 at 19:57