c# - Coding path to file when it is called using registry and context menu -


In my c # console application , which takes the argument as a logic, I have A context menu item is images, which calls "myexe.exe% 1" , so the path to the file becomes the argument for the application even if the files in the path of the vacancies I see, by what logic my application takes, I can see something like "visual ~ 3 / ... / code> (this is the example when the path file contains" View Stui

But my application should understand how many arguments have been given, so if it is called from the context menu, then all is well, because result logic There is no free space in it.

But let me also call string exe file and string argument with spaces. When I just argue with empty space, my application It divides, so I do not know how to Is to Ksel file referenced in the blanks in the code logic, such as context menus to it?

You should repeat your command line arguments, e.g.,

  String arguments = "\" arg 1 \ "\" arg 2 \ "";    

Comments