开发者

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" + "\"";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜