Hi,
I am currently still learning to use VB.Net feature. Need some help with the coding.
Currently i am trying to execute a .exe file where there will be passing parameters to run the script. For eg this how it works on the command prompt line:
Above line will be able to run the textfile.exe script.
I am using VB .Net to create a User Interface where user will be able to use the 'OPEN CLICK' button to choose the files (which will display on a textbox) and click on a 'START' button to run the program.
I managed to find a code - process.start() feature, however it cant seem to work..
I'll show my code here and hopefully someone will be able to guide me thru my project. Thanks in advance.
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
		
			
		
		
	
				
			I am currently still learning to use VB.Net feature. Need some help with the coding.
Currently i am trying to execute a .exe file where there will be passing parameters to run the script. For eg this how it works on the command prompt line:
C:\Documents and Settings\project1>textfile.exe file1.txt file2.txt file3.txt file4.txt
Above line will be able to run the textfile.exe script.
I am using VB .Net to create a User Interface where user will be able to use the 'OPEN CLICK' button to choose the files (which will display on a textbox) and click on a 'START' button to run the program.
I managed to find a code - process.start() feature, however it cant seem to work..
I'll show my code here and hopefully someone will be able to guide me thru my project. Thanks in advance.
			
				VB.NET:
			
		
		
		Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim MyProg As String 
    Dim executable As String 
    executable = "C:\Documents and Settings\project1\textfile.exe"
    MyProg = TextBox1.Text
    Process.Start(x, MyProg) 
	 
 
		 
 
		 
 
		 
 
		