Jump to content

Largest Command

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
I would like to execute my program via command prompt with arguments attached. What is the maximum number of characters this can be?

#2
brackett

brackett

    Programmer

  • Members
  • PipPipPipPip
  • 192 posts
According to Raymond Chen, the CMD.EXE limit is 8192 characters.

#3
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
That is a lot of arguments! What platform is that number for?

#4
brackett

brackett

    Programmer

  • Members
  • PipPipPipPip
  • 192 posts
It's CMD.EXE, so I'd suspect that it's the entire NT line - at least NT4+ (though Chen doesn't specify, so I'm hazarding a guess).