Does anyone know a method to get the path of Explorer Window's file view from window handle...
Though I may not need to, if there is a way to do this through OLE Drag/Drop instead...
--------------------------------------------------------
-- Details ---------------------------------------------
--------------------------------------------------------
*Note: the code below is just for a reference so you can see what I am dealing with. I don't expect it to make perfect sense to everyone...
The reason for all of this is... I have a PDM system called Matrix that uses MQL (similar to SQL) to query the system...
To check a file out, you have to send a string such as...
For examnple:
Checks out test.txt from format Text in business object 12.34.56.78 and places it in "c:\test"
Currently, I have a program set up to query objects to get the checked in files' names and formats, and places them in a list...
I can double click them and check them out to a predefined folder (in a folder list box) and that works ok...
But I have the object structure set up in a treeview, and All I have to do to check a file into an object is drag it from explorer and it handles the rest with this simple code:
*FYI: The checkin string is:
"checkin bus ID append 'File'"
--------------------------------------------------------
-- Problem ---------------------------------------------
--------------------------------------------------------
I would like to do something similar to check files out...
Drag the file from the ListView onto an explorer window, and have it check the file out to that folder...
Any ideas?
Have Fun, Be Young... Code BASIC
-Josh
PROGRAMMER:
Red-eyed, mumbling mammal capable of conversing with inanimate objects.
Though I may not need to, if there is a way to do this through OLE Drag/Drop instead...
--------------------------------------------------------
-- Details ---------------------------------------------
--------------------------------------------------------
*Note: the code below is just for a reference so you can see what I am dealing with. I don't expect it to make perfect sense to everyone...
The reason for all of this is... I have a PDM system called Matrix that uses MQL (similar to SQL) to query the system...
To check a file out, you have to send a string such as...
Code:
"checkout bus ID format 'FORMAT' file 'FILE' 'Path'"
For examnple:
Code:
mqlCommand "checkout bus 12.34.56.78 format 'Text' file 'test.txt' 'c:\test\'"
Currently, I have a program set up to query objects to get the checked in files' names and formats, and places them in a list...
I can double click them and check them out to a predefined folder (in a folder list box) and that works ok...
But I have the object structure set up in a treeview, and All I have to do to check a file into an object is drag it from explorer and it handles the rest with this simple code:
Code:
Private Sub TreeView1_OLEDragDrop(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, y As Single)
Dim Node As MSComctlLib.Node, I As Integer, Msg as String
Set Node = TreeView1.HitTest(X, y)
If Not (Node Is Nothing) Then
If Data.GetFormat(vbCFFiles) = True Then
For I = 1 To Data.Files.Count
Msg = Msg & Data.Files.item(I) & vbCrLf
Next
If MsgBox("check files: " & vbCrLf & Msg & " into object " & Node.Text, vbYesNo) = vbYes Then
For I = 1 To Data.Files.Count
[b]mqlCommand "checkin bus " & Node.Text & " append " & "'" & Data.Files.item(I) & "'"[/b]
Next
End If
End If
End If
End Sub
*FYI: The checkin string is:
"checkin bus ID append 'File'"
--------------------------------------------------------
-- Problem ---------------------------------------------
--------------------------------------------------------
I would like to do something similar to check files out...
Drag the file from the ListView onto an explorer window, and have it check the file out to that folder...
Any ideas?
Have Fun, Be Young... Code BASIC
-Josh

PROGRAMMER: