Clearcase dynamic views can be accessed via M: drive by default.
But if it is mapped in some other drive letter like Y: it will not have View name.
This property is challenging when i am doing scripting . If the user trigger the script from M: drive the path should be constructed with view name.
I am using powershell, If i know how to get the clearcase view name i can construct the path dynamically.
$drive =$Pwd.Drive.Name
$ClearcaseViewName ="How to get current view name from the directory? "
If ( $Pwd.Drive.Name -eq "M" ) {
$Path = "M:\$ClearcaseViewName\Vobname"
}
Else {
$Path = "$Drive"+":"+"\VobName"
}
Is there any easy way to get clearcase name in powershell? Even cleartool commands can be used in powershell