In my c# console application, which takes string as arguments,
I have a context menu item for images, that calls "myexe.exe %1", so path to file becomes argument for application. Even if path to file contains spaces, when I watch, what argument my application takes, I can see something like "VISUAL~3/...." (it is example when path to file contains "visual stuido", it has space).
But my application should understand how many arguments are given, so if it is called from context menu, everything is ok, because result argument has no spaces.
But I need call exe file from other application and give string arguments with spaces too. When I just give argument with spaces, my application splits it, so I don't know how to code spaces in argument to give it to exe file, like context menu does. How to do it?