Win32 API command line arguments parsing

前端 未结 9 2406
小蘑菇
小蘑菇 2020-12-16 13:52

I\'m writing Win32 console application, which can be started with optional arguments like this:

app.exe /argName1:\"argValue\" /argName2:\"argValue\"
         


        
9条回答
  •  情歌与酒
    2020-12-16 14:33

    You can parse the arguments by using GetCommandLine, PathRemoveArgs, PathGetArgs in a loop

    https://msdn.microsoft.com/en-us/library/windows/desktop/bb773742(v=vs.85).aspx

提交回复
热议问题