command line maximum number of characters

V

Vincent

Hi all,

I'm new to Vista, so please forgive my newbie question.
Is there a limit in the number of characters in the command line?
I mean can I execute some commands like "my_very_longue_command.exe -param1
-param2 ..... -param200" with more than 300 or 400 characters?
And if there is a limit, is it possible to increase it?
And if it is possible, how to do it?

Many thanks.
Regards.
Vincent.
 
R

Ronnie Vernon MVP

Vincent

On computers running Microsoft Windows XP or later, the maximum length of
the string that you can use at the command prompt is 8,191 characters. On
computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum
length of the string that you could use at the command prompt was 2,047
characters.
More information in the following KB article.

Command prompt (Cmd. exe) command-line string limitation:
http://support.microsoft.com/kb/830473


--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Vincent" <Vincent@discussions.microsoft.com> wrote in message
news:F2CF63C6-AA72-46EF-BDCD-FB57CA893B79@microsoft.com...
> Hi all,
>
> I'm new to Vista, so please forgive my newbie question.
> Is there a limit in the number of characters in the command line?
> I mean can I execute some commands like
> "my_very_longue_command.exe -param1
> -param2 ..... -param200" with more than 300 or 400 characters?
> And if there is a limit, is it possible to increase it?
> And if it is possible, how to do it?
>
> Many thanks.
> Regards.
> Vincent.
 
Back
Top Bottom