I
ittay.dror
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
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