Thread: Launch .exe
View Single Post
  #2  
Old 09-30-2005, 06:44 AM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default 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
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote