commandline argument parameter limitation

前端 未结 8 1743
伪装坚强ぢ
伪装坚强ぢ 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:12

    You may want to consider creating a parameter file and passing the file as the parameter.

    I found this:

    For OS: maximum command line lenght is 32767 characters (this limit is from unicode string structure), command prompt maximum lenght is 8192 characters (this limit is from cmd.exe). You may also check:

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

    Hope this help.

提交回复
热议问题