This code is the code where I am calling the command prompt and adding arguments
Private Sub ConvertButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ConvertButton.Click
Using m_Process As New Process()
With m_Process.StartInfo
.FileName = "cmd.exe"
.UseShellExecute = False
.CreateNoWindow = True
.Arguments = CLIBrowse.SelectedPath & "-i " & SourceBrowse.SelectedPath & "-o " & DestinationBrowse.SelectedPath & CustomBox.Text
End With
m_Process.Start()
m_Process.WaitForExit(5000)
End Using
End Sub
This is the code that contains the array from a combobox
Private Sub LanguageBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LanguageBox.SelectedIndexChanged
Dim Lan(1) As String
Lan(0) = "eng"
Lan(1) = "jpn"
For i = 0 To 1
LanguageBox.SelectedIndex = Lan(i)
Next
End Sub
End Class
Now what I specifically want to do with this code is add the value from the combo box to the command line argument like so
.Arguments = CLIBrowse.SelectedPath & "-i " & SourceBrowse.SelectedPath & "-o " & DestinationBrowse.SelectedPath & CustomBox.Text & "VALUE FROM COMBO BOX GOES HERE"

New Topic/Question
Reply




MultiQuote



|