Using the contents of a Textbox as arguments for Process.Select : I'm a new programmer who is just getting into Visual Basic. I'm trying to create a simple application that would let me mount ISO files using the built in Windows PowerShell.

My Code is here:

    Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
        If OpenFileDialog1.ShowDialog = DialogResult.OK Then

            TextBox1.Text = OpenFileDialog1.FileName
            Me.ErrorProvider1.SetError(Me.TextBox1, "Looks Valid")

        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If ErrorProvider1.GetError(TextBox1) = "Looks Valid" Then
            Process.Start("powershell", "Mount-DiskImage 'C:\ISO\MY Magic ISO.iso'")

        Else
            Me.ErrorProvider1.SetError(Me.TextBox1, "Please Select a Valid File")

        End If
    End Sub

My program is simple, you pick a file from the dialog, and if the file is valid, it is mounted with powershell. 

My question is how I would go about dynamically changing the "C:\ISO\MY Magic ISO.iso" filepath, using the contents of Textbox1. Is this possible? Any help would be greatly appreciated, and I am incredibly sorry if this has been asked before!

Cheers!
