views:

18

answers:

2

in my one batch file i set a variable, after running this batch file it shows the error "The input line is too long." how to overcome from this problem. or it is possible to increase the input line length(max) in windows?

A: 

As per my comment, to delimit a line in a batch file, append the ^ character to the line. Eg:

somelong command ^
carries on here ^
and finally ends here

This will behave as 1 line.

Not however if this will overcome the input length limitation.

leppie
@Benoit: Jeez, thanks for typo fix, it confused the hell out of me just now ;P MOAR COFFEE!
leppie
@leppie, u can haz kophee. I think you had delimited too much in your answer. :)
Benoit
A: 

That sounds like one monster batch file. If you are going to be dealing with large inputs, its probably best that you modify your command to read its parameters from a configuration file.

I think you would find it allot easier to use/maintain as-well.

If you were to post the batch contents, or erroneous line - perhaps SO could be of more help?

Tim