Click here to Skip to main content
15,905,682 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
I tried to execute the command prompt, my command is containing lengthy lines which is more than the command prompt limitation of 8191 characters, so i can't enter more characters. Is there anyway to overcome this limitations!?

Thanks & regards,
J.Surjith Kumar
Posted
Updated 29-Aug-13 21:53pm
v2
Comments
[no name] 29-Aug-13 7:07am    
Really? Just out of curiosity, what could you possibly be doing that would require a command prompt like that?
J.Surjith Kumar 29-Aug-13 7:40am    
Have you heard about mp4box which is a command tool if you want to merge more than 100 videos at the same time this scenario will come, the path of the video is larger you can't change that.
nareshkumar464 29-Aug-13 7:50am    
I faced the same scenario i couldn't get any solution for this but try to reduce the path of the video so that you won't exceed the limitations of it. This is what i followed.

1 solution

Not really, without changing the actual software to accept a command file name instead. The limit is built in: http://support.microsoft.com/kb/830473[^]
 
Share this answer
 
Comments
J.Surjith Kumar 29-Aug-13 7:41am    
I gone through this link before i ask this question.
J.Surjith Kumar 29-Aug-13 7:42am    
Thank you,
OriginalGriff 29-Aug-13 8:29am    
You're welcome.
Unfortunately, the link is from the people who know, because they wrote the OS! That makes it pretty well definitive :laugh:
J.Surjith Kumar 29-Aug-13 8:45am    
Can you give me an example of that [work around the limitations] I tried but i couldn't get it.
OriginalGriff 29-Aug-13 9:58am    
Just change it so it has a single parameter - a file path.
In your code, read the file contents using File.ReadAllText and treat the resulting string as if it were your arguments. If necessary, separate commands with newlines, and use File.ReadAllLines instead to give you an array of arguments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900