Lutz
10-Apr-2008, 06:57 AM
Hello,
I have just another development request:
Is it possible to add the information about the clearcase-object kind of a file system element?
Unfortunately this information is not provided by the CC-API, but it is possible to get this using a cleartool-call.
I wrote the following code (cc_object_kind.vbs):
<<<
Set WshShell = WScript.CreateObject("WScript.Shell")
Set ClearTool=CreateObject("Clearcase.Cleartool")
CTcmd = "des -fmt " & """" & "%m" & """" & " " & """" & WScript.Arguments(0) & """"
WshShell.Popup WScript.Arguments(0),0,ClearTool(CTcmd)
>>>
and call it from open with for now:
http://www.scootersoftware.com/beta3/vbulletin/attachment.php?attachmentid=121&stc=1&d=1209099737
This script returns a string representing the object kind.
Some possible values are:
'derived object', 'derived object version', 'symbolic link'
For 'symbolic link' Cirrus may show an arrow above the file/folder symbol as for linked windows folders http://www.scootersoftware.com/cirrus/vbulletin/attachment.php?attachmentid=106&stc=1&d=1207832046.
For both 'derived object ...' Cirrus may show a hand above the file/folder symbol as for windows shares http://www.scootersoftware.com/cirrus/vbulletin/attachment.php?attachmentid=107&stc=1&d=1207832061.
Greetings Lutz
I have just another development request:
Is it possible to add the information about the clearcase-object kind of a file system element?
Unfortunately this information is not provided by the CC-API, but it is possible to get this using a cleartool-call.
I wrote the following code (cc_object_kind.vbs):
<<<
Set WshShell = WScript.CreateObject("WScript.Shell")
Set ClearTool=CreateObject("Clearcase.Cleartool")
CTcmd = "des -fmt " & """" & "%m" & """" & " " & """" & WScript.Arguments(0) & """"
WshShell.Popup WScript.Arguments(0),0,ClearTool(CTcmd)
>>>
and call it from open with for now:
http://www.scootersoftware.com/beta3/vbulletin/attachment.php?attachmentid=121&stc=1&d=1209099737
This script returns a string representing the object kind.
Some possible values are:
'derived object', 'derived object version', 'symbolic link'
For 'symbolic link' Cirrus may show an arrow above the file/folder symbol as for linked windows folders http://www.scootersoftware.com/cirrus/vbulletin/attachment.php?attachmentid=106&stc=1&d=1207832046.
For both 'derived object ...' Cirrus may show a hand above the file/folder symbol as for windows shares http://www.scootersoftware.com/cirrus/vbulletin/attachment.php?attachmentid=107&stc=1&d=1207832061.
Greetings Lutz