splitting string to arguments for Runtime.exec
Date: 29 Mar 2005 23:56:59 -0800
Hi,
Can someone please post a code example of how to convert a string with
execution command to array of arguments for Runtime.exec? (since
Runtime.exec(String) parses the string with StringTokenizer, it won't
handle quoted arguments very well).
I've tried StreamTokenizer, but it doesn't handle quotes well: "c:\foo"
converts to "c:foo"
Thanx,
Ittay
Relevant Pages
- Help in French|Spanish|German translation.
... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ... (microsoft.public.fox.helpwanted) - Re: passing a string to a dll
... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ... (microsoft.public.vc.mfc) - Re: passing a string to a dll
... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ... (microsoft.public.vc.mfc) - RE: Structure conversion from C++ to VB-2008?
... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ... (microsoft.public.dotnet.languages.vb) - Structure conversion from C++ to VB-2008?
... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ... (microsoft.public.dotnet.languages.vb) |
|