Damilis
09-30-2005, 06:20 AM
Anyone know how to launch a .exe on the server using vb.net code in a clients browser? I have been trying for a week now and I am stumped.
OS is windows server2003 standard running IIS as web server.
sdabbs65
09-30-2005, 06:44 AM
Anyone know how to launch a .exe on the server using vb.net code in a clients browser? I have been trying for a week now and I am stumped.
OS is windows server2003 standard running IIS as web server.
if i remember right the code works
by using the shell command to execute RunDLL32.exe.
Private 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
Private Const SW_SHOW = 1
Public Sub Navigate(ByVal NavTo As String)
Dim hBrowse As Long
hBrowse = ShellExecute(0&, "open", NavTo, "", "", SW_SHOW)
End Sub
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.