让我们有一个路径如何用引号括起存储在变量中的路径?
C:\Program Files\TestFolder
这条道路我得到了编程并存储在varible dirpath(例如)
我现在已经串连字符串
dirpath=getInstallationpath()+"\\ test.dll /codebase /tlb";
然后dirpath是成为
C:\Program Files\TestFolder\test.dll /codebase /tlb
但我的问题是我已经把路径用双引号括起来
"C:\Program Files\TestFolder\test.dll"
因为当我直接传递dirpath作为命令行用于regasm在的CreateProcess(),那么它应该能够接受C:\程序只是因为白spaces.so我尝试很多特技等
dirpath="\ "+getInstallationPath()+" \test.dll /codebase /tlb "
这样的,但没有工作......
所以请HEP我在这方面...提前
谢谢...
这与从http://stackoverflow.com/questions/1177323/how-to-pass-the-directory-path-as-command-line-for-the-process中的问题有何不同? – sharptooth 2009-07-30 04:52:36