B
BrianB
I need to determine the exact case of a full folder path regardless of how
the user typed it in. Why? Windows commands are case insensitive but
ClearCase cleartool commands are case sensitive.
For example, if a folder is named:
M:\default\CAxI\CAxPrep\bin
and the user types this in and it is stored in the variable strPath:
m:\default\caxi\caxprep\bin
Dim CT As New ClearCase.ClearTool
If Directory.Exists(strPath) Then
try
msgbox("Input path: " & CT.CmdExec("ls " & strPath))
Catch ex As Exception
MsgBox("Find boom: " & ex.GetBaseException.ToString)
End Try
End If
This will return the exception: System.Runtime.InteropServices.COMExection
(0x80004005): Pathname is not within a VOB: "m:\default\caxi\caxprep\bin"
Is there a way to convert the input path "m:\default\caxi\caxprep\bin" into
the real case path "M:\default\CAxI\CAxPrep\bin"
Thank you
Brian Bygland
the user typed it in. Why? Windows commands are case insensitive but
ClearCase cleartool commands are case sensitive.
For example, if a folder is named:
M:\default\CAxI\CAxPrep\bin
and the user types this in and it is stored in the variable strPath:
m:\default\caxi\caxprep\bin
Dim CT As New ClearCase.ClearTool
If Directory.Exists(strPath) Then
try
msgbox("Input path: " & CT.CmdExec("ls " & strPath))
Catch ex As Exception
MsgBox("Find boom: " & ex.GetBaseException.ToString)
End Try
End If
This will return the exception: System.Runtime.InteropServices.COMExection
(0x80004005): Pathname is not within a VOB: "m:\default\caxi\caxprep\bin"
Is there a way to convert the input path "m:\default\caxi\caxprep\bin" into
the real case path "M:\default\CAxI\CAxPrep\bin"
Thank you
Brian Bygland