K
Ken Miller
Hi all, I'm very new to vb.net, and was trying to write a wrapper for a
command line utility, the problem being the parameter to be called to it is
a path, and will generally have spaces in it. I've tried various things,
using multiple "'s, Chr$(34)s and its making me mad now
TextBox1 is the path that I'm sending to the cmd. Really all I want is to
put a pair of quotes around the actual path, so that the data in TextBox1
becomes "C:\test.txt" instead of C:\test.txt or whatever.
Can anyone help?
Heres the bit of code:
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem2.Click
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
TextBox1.Text = OpenFileDialog1.FileName
command = Shell("C:\WINDOWS\pscp.EXE " + TextBox1.Text + " " +
TextBox2.Text, AppWinStyle.NormalFocus)
Thanks,
Ken
command line utility, the problem being the parameter to be called to it is
a path, and will generally have spaces in it. I've tried various things,
using multiple "'s, Chr$(34)s and its making me mad now

TextBox1 is the path that I'm sending to the cmd. Really all I want is to
put a pair of quotes around the actual path, so that the data in TextBox1
becomes "C:\test.txt" instead of C:\test.txt or whatever.
Can anyone help?
Heres the bit of code:
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem2.Click
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
TextBox1.Text = OpenFileDialog1.FileName
command = Shell("C:\WINDOWS\pscp.EXE " + TextBox1.Text + " " +
TextBox2.Text, AppWinStyle.NormalFocus)
Thanks,
Ken