|
发表于 2006-4-4 00:17:54
|
显示全部楼层
Can you run your cmd by usingand paste the detail execution processes out? It will be easiler to see how your script is processed. My previous reply will just show the correct output, but when you take the result to java, shell will process the arguments again and take off the "". You might have to try- '"c:\\program\ file\\peng"'
复制代码 , so when the second time processing, \ and space will be treated literally. |
|