10-14-2014, 04:48 AM 
		
	
	
		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.
Many thanks for your help.
Regards
Tony
	
	
	
	
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 SubMany thanks for your help.
Regards
Tony

 
 

 

