Das ist der vollständige Script. Wenn ich den Debugger laufen lasse, kommt "Datei not found" in der letzten Zeile: result = Shell(run, 1)
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uiws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = uiws.CurrentDocument
Dim path As String
Dim run As String
Dim pfad As String
Dim result As Integer
filenames = ws.OpenFileDialog( _
True, "Select your file",, "c:\temp")
If Not(Isempty(filenames)) Then
run = path + "\Microsoft Office\Office12\OrgWiz.exe " _
+ "/NAME-FIELD=Name / MANAGER-FIELD=Vorgesetzter /DISPLAY-FIELDS=Name,Abteilung /UNIQUEID-FIELD=Eindeutige_ID /FILENAME="+filename
result = Shell(run, 1)
End If
End Sub