c++ - How to pass the Directory path as command line for the process? -


Using regasm.exe to generate the tlb file and register the assembly programatically. But in the path of TLB only in the .NET root directory. So in this way

in the buffer c: \ windows \ Microsoft.Net \ framework \ v2.0.57 \ RegAsm.exe

  if (! CreateProcessW buffer, C: \\ Program Files \\ Test \\ Test.dll / codebase / tlb / silent ", tap, zeros, false, 0, zero, zero, (LPSATATTTPTUUU & SI, and P))  

But I think that it can not take the full path because there is a blank B / Y program and files. Hopefully when I run the command, it looks unable to detect the input assembly C: \ programm

Normally at the command prompt we

RegAsm.exe "c: \ program files \ test \ test.dll" / codebase / tlb this bold I can go as a command line in the form of characters, but with double cumulents placed in double quotes. That's why I was killed.

How can I fix this

You must attach the quotation marks The path within string, which you can do with the backslash by avoiding the quotation letters by the preceding. Therefore, your second parameter creation process will be:

  l "\" C: \ Program Files \ Test \ Test.dll \ "/ codebase / tlb / silent"  

This will give you the command line with the quotes at the command prompt.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -