How to increase the size of the launch command line to increase the target

I pass parameters from startup to my window. I found out that you cannot transfer more than 259 characters. I have a Windows application in C # where I want to pass arguments. I initially cited command line arguments using enviorment.getcommandlineargs, which worked successfully. Now the client has made a new requirement that instead of going to the command line and sending arguments, he will send from the launch line (he will not be on the command line). This exe consists of parameters whose length exceeds 259 characters.

How should I deal with this scenario.

+3
source share
3 answers

, , .

.

+5

, . , , .

. - myApp.exe myFirstParam=EnableGui mySecondParam=DataHere, myApp.exe p1=1 p2=14. longhnad, , , .

, , , .

.bat/.cmd . xml, ( , ) .

+1

? , , , WinForms , . , , : , , , , .

, 259 Start-Run-Box, .

+1

Source: https://habr.com/ru/post/1733911/


All Articles