program.exe file1 file2 ... file10000 won't work.
Windows have weird limitation to the length of command line parameters. It something between 32683 and 32853 characters. Is there any other way to pass parameters?
|
Windows have weird limitation to the length of command line parameters. It something between 32683 and 32853 characters. Is there any other way to pass parameters?
| |||
|
show 5 more comments
feedback
|
|
The most practical solution is to get your vendor to fix the program. Failing that, it would be possible (though not easy) to hook the GetCommandLine function so that it returns a string of arbitrary length, although this might just cause the program to crash, depending on how it processes the command line. | |||
|
feedback
|
program.exedoesn't allow dirs. Also, I cannot pass parameters by parts (1-1000 first, 1001-2000 second etc). And more importantly I don't own source code to modify it. – ShyMan Nov 28 '11 at 1:27