Имеется CATVba, в нём закодирован интерфейс
Spoiler :
- Код: Выделить всё
Create the command line to launch the MyBrowse JAR file to select a JT file
'============================================================================
Dim JRE_INSTALL
JRE_INSTALL = regValue & "\jre\bin\java.exe"
JRE_INSTALL = Chr(34) & JRE_INSTALL & Chr(34)
Dim Browse_JAR
Browse_JAR = regValue & "\lib\MyBrowse.jar"
Browse_JAR = Chr(34) & Browse_JAR & Chr(34)
Dim browse_cmd, browse_cmd1
browse_cmd = JRE_INSTALL & " -jar " & Browse_JAR
Dim dlgTitle
dlgTitle = "Select JT File to Insert"
dlgTitle = Chr(34) & dlgTitle & Chr(34)
'===================================================================
'Invoke the MyBrowse jar file to launch the JT File Selection dialog
'===================================================================
Dim tdiff
tdiff = Len(sCurDir) - InStr(sCurDir, ":")
'If the current directory is a root directory, then we pass it as an argument without quotes, else with quotes
If tdiff = 1 Then
browse_cmd1 = browse_cmd & " 0 0 false false " & dlgTitle & " " & sCurDir & " " & sCurDir
Else
browse_cmd1 = browse_cmd & " 0 0 false false " & dlgTitle & " " & sCurDir1 & " " & sCurDir1
End If
Dim x
x = sh2.Run(browse_cmd1, 0, True)
'=======================================
'Determine the JT Filename to be opened
'=======================================
Dim JT_filename, sFile, sFile1, oFile, sText
sFile = sCurDir & "\tempFile.txt"
sFile1 = Chr(34) & sFile & Chr(34)
If oFSO.FileExists(sFile) Then
Set oFile = oFSO.OpenTextFile(sFile, 1, False)
sText = oFile.ReadLine
If Trim(sText) <> "" Then
If InStr(sText, " ") = 0 Then
JT_filename = sText
Else
JT_filename = Chr(34) & sText & Chr(34)
End If
Else
MsgBox "The JT file selected could not be found.", vbCritical
Exit Sub
End If
oFile.Close
'Delete the tempFile.txt which was created by the JAR file
'=========================================================
oFSO.DeleteFile sFile, True
Else
MsgBox "The JT file selected could not be located.", vbCritical
Exit Sub
End If
Задача: сделать так, чтобы можно было выбрать не один файл, а список файлов или папку, в которой находится много файлов