Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running an embeded EXE .NET 2013
#1
Hi.

I'm currently working on a new project for working with .PK3 - .DMD & .MD2 files.

Now, I have an EXE (cv.exe) that I would like to embed into my program and execute through the routine below.

I've tried different methods found on the internet without any luck.

Code:
' This routine runs MD2Tool with the selected tasks. (Convert)    
  
Private Sub RunMD2tool(ByVal path As String, ByVal file As String, ByVal tasks As String)    
  
Dim p As New Process()    
  
Dim infs() As String = {"""" & path & "\" & (file) & """" & tasks}    
  
With p.StartInfo    
For f = 0 To infs.Count - 1    
.Arguments = infs(f)    
.FileName = "cv.exe"    
  
' Hide the window ?    
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden    
p.Start()    
  
Do While Not p.HasExited    
Application.DoEvents()    
Loop    
Next    
End With    
  
MsgBox("Convertion complete.")    
  
SinglePath.Text = Nothing    
Label7.Text = Nothing    
  
End Sub

Many thanks for your help.

Regards

Tony


Messages In This Thread
Running an embeded EXE .NET 2013 - by Worf - 10-14-2014, 04:48 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)