EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Launch .exe (https://www.eqemulator.org/forums/showthread.php?t=19471)

Damilis 09-30-2005 06:20 AM

Launch .exe
 
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

ummm
 
Quote:

Originally Posted by Damilis
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.

Code:

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



All times are GMT -4. The time now is 09:18 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.