'Create a OpenFileDialog object
Dim openFileDialog As New System.Windows.Forms.OpenFileDialog()
'Select a file
'Get file info
Dim path As String = openFileDialog.FileName
Dim fileName As String = System.IO.Path.GetFileName(path)
Dim filePath As String = System.IO.Path.GetFullPath(path)
Thanks for the reply, but I don't want to open a dialog and manually select a file.
I am already reading variables from a file card in EPDM associated with the file I am interested in. I just need to know how to determine the file name and path of the file associated with that file card.
IEDMFile5::GetLocalPath is the call you need.
However, you don't say how you are accessing the card, so I'm not sure how you get to the IEDMFile5 object
If it is a callback from a button on the card, then EdmCmdData.mlObjectID1 will be the ID of the file.
Hi Simon -
Thanks, this was what I was looking for!