Search code examples
c++windowswinapicommand-line-argumentscreateprocess

Why does another executable file doesn't give me a hint just like the other one on how parameters in command-line should be formatted?


In one of my executable file when I try to call it using CreateProcess and passed some parameters in command line the executable file gives me a hint that the parameter should be like this format.

Image1

But, when I try to call another executable it doesn't give me a hint. Any idea?


Solution

  • There is no requirement for an application to self document its command line arguments by way of console output or a dialog. Whether or not an application does so is entirely up the the author of that application.

    Clearly you have two applications, one which shows a dialog, and one which doesn't. For the latter, presumably you must read its documentation to find out what the arguments should be.