Application.StartupPath contains spaces
In a previous question (this), a solution was given so I know now where the problem is. But now I have no idea how to solve it...
What if my Application.StartupPath contains space开发者_JS百科s? How should I quote them?
You can have a double quote be a part of a string using escape characters (just put a backslash in front of the quote).
From your previous question, here's how you could enclose the entire path to your *.jar file in double quotes:
var pathJava = "\""+ Application.StartupPath + "\\pathToJavaApp\\javaApp.jar" + "\"";
精彩评论