command line maximum number of characters

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top