Mailinglisten-Archive |
Andres Ziegler schrieb:
>
> Servus !!!
>
> Kann mir jemand sagen ob es möglich ist die Dosbox von Apache unter Windows
> 95 zu unterdrücken... und wie ?
Hab dazu nur vb-Quellcode fuer win32:
Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As
String, ByVal nCmdShow As Long) As Long
Private Declare Function GetCommandLine Lib "kernel32" Alias
"GetCommandLineA" () As String
Sub Main()
Dim ex, i
Dim lne, params, param1 As String
params = ""
i = 1
lne = GetCommandLine()
While (params <> "/" And i < Len(lne))
params = Mid(lne, i, 1)
i = i + 1
Wend
param1 = Mid(lne, i, Len(lne))
ex = WinExec(param1, "0")
If (ex < 32) Then
Dim msg
msg = "Fehler: Ziel konnte nicht ausgefuehrt werden, " + params
MsgBox (msg)
End If
End
End Sub
Aufgerufen wird mit:
prog.exe /absolute Adresse von apache.exe
z.B.:
prog.exe /d:\apache\apache.exe
Vielleicht kanns ja einer brauchen:)
Gruss,
TomH
php::bar PHP Wiki - Listenarchive