How to send Windows path (With spaces) as parameters to Runtime.exec with Java 1.5?
Posted on 2006-10-21
In Java 1.4 when I needed to send to Runtime.exec a parameter with spaces (Path under 'Program Files') I would just wrap it with:
String quotes= "\"";
and put quotes before and after it.
In Java 1.5 it adds to the string \" and not just " as I wanted, so how do I add " at the beginning and at the end?