commandline argument parameter limitation

前端 未结 8 1746
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 09:39

Language: C# I have to pass a huge string array (built dynamically) as an argument to run an exe. I am thinking of acheiving it by the below 2 ways. But I am not feeling confid

8条回答
  •  独厮守ぢ
    2021-02-08 10:28

    It is not really good practice to use command line arguments for huge arrays. Put your arguments in a configuration file instead, and just pass the filename as a command line argument.

    The OS limit varies with the Windows version. It could be about 2k or 8k:

    http://support.microsoft.com/kb/830473

提交回复
热议问题