Tried that. It splits on spaces then.
I think I got it though.
I changed the for loop above to this
VB Code:
For c As Integer = 0 to CmdArgs.Length - 1 If CmdArgs(c).IndexOf(" ") > -1 Then arg &= """""""""" & CmdArgs(c) & """""" & " " Else arg &= """" & CmdArgs(c) & """" & " " End If Next
What I don't like about this method is that if the argument has spaces it is passed with quotes around it. I would really prefer not to have that. But I can't get it to work any other way.




Reply With Quote