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
#2
I remember quite some time ago, I was looking for a solution to this exact problem. Unfortunately, I was not able to find anything.

Sorry for not being able to offer any advice. If you find a solution, be sure to let us know!
My Blog | My Setup | My Videos | Have a wonderful day.


Forum Jump:


Users browsing this thread: 1 Guest(s)