Dec 10, 2003
Post comments count0
Post likes count1

What is the command line length limit?

Raymond Chen
Raymond Chen

It depends on whom you ask. The maximum command line length for the CreateProcess function is 32767 characters. This limitation comes from the UNICODE_STRING structure. CreateProcess is the core function for creating processes, so if you are talking directly to Win32, then that's the only limit you have to worry about. But if you are reaching Cr...

Code