I am trying to launch an external application from within a frame or from a button in Notes (client only, no web). I’ve tried:@Command([Execute];“c:\sign2\sf\runit\runit.exe”;“runit.fc”)
I tried calling a batch file to launch it:
@Command([Execute];“c:\sign2\sf\runit.bat”) where the batch file contains the command to launch the program.
When I double click the batch file, it opens just fine. When I run it with the above formula it doesn’t work.
I’ve even tried using ShellExecute:
Declare Function ShellExecute Lib _
“shell32.dll” Alias “ShellExecuteA” _
(Byval hwnd As Long, _
Byval lpOperation As String, _
Byval lpFile As String, _
Byval lpParameters As String, _
Byval lpDirectory As String, _
Byval nShowCmd As Long) As Long
Sub Click(Source As Button)
’ Button Code
Dim iret As Long
Const SW_SHOWNORMAL = 1
iret = ShellExecute( 0, _
“Open”, _
“C:\Sign2\SF\RUNIT\RUNIT.EXE”, _
“C:\Sign2\SF\RUNIT\runit.fc”, _
"c:", _
SW_SHOWNORMAL )
End Sub
Whenever it doesn’t work using any of the methods above, I get the following error:
“AutoExec1 Error: 3176. Couldn’t open file c:\lotus\notes\dirparam.txt.”
I can find no reference anywhere on the PC or on the internet to the dirparam.txt file. Does anyone have any ideas on this?
I think the Error 3176 is a microsoft access error which is used by the software I’m trying to launch. However, why on earth won’t the program launch from within Notes the way it does from the program shortcut or the batch file??
THis is really driving me crazy! Any ideas are welcome!