Message Board


Message Board > Programming > Maximum length of arguments when calling a program from command prompt

January 30, 2007, 09:31
Dennis
どこかにいる
2092 posts

Hello,

Does someone perhaps know what the maximum length of an argument is when calling a program from the command prompt?

i.e.

C:\> dar_creator.exe someguy&&blah blah avenue 190&&B9512&&Somecity&&Somecountry&&1000&&15236485&&12&&200&&no&&no&&yes&&yes&&Hello&&dennisds@cheesypeas.com&&holy_shit@vatican.com&&Hi, this is a test I am trying to call a program and in this program I split this into tokens by splitting at each double ampersant&&24&&78

Is there a limit on the size?

I am making a program that modifies a Word-file and then e-mails it as attachment. The parameters need to be gained from the program where you call this program.
____________
Kwakkel
#
January 30, 2007, 11:54
Dennis
どこかにいる
2092 posts

As feared there is a problem. It got longer and now it says "dar_creator.exe is not recognized as an internal or external command, operable program or batch file"
____________
Kwakkel
#
January 30, 2007, 13:45
DTM
Earthling!
821 posts

So can you pass a file to the program? Containing the data.
____________
:o
#
January 30, 2007, 15:57
Dennis
どこかにいる
2092 posts

yes, it now works perfectly but I forgot to dispose the attachment from the mailserver and it is now having opened file handlers left on the mailserver. I am pretty fucked.
____________
Kwakkel
#
January 31, 2007, 10:53
Dennis
どこかにいる
2092 posts

Ok I managed to get rid of the file handlers and now it works perfectly. Thanks for all your help :D
____________
Kwakkel
#
February 1, 2007, 20:07
Moogle
Enterprise Edition
239 posts

What is wrong with Googling these things in the first place?
____________
I am Moogle and I approve this message.

Quoting (. )( .) in the Bugs topic:
Everytime I login the threads with new posts are by Dennis.
#
February 1, 2007, 20:19
Quiest
now with more happynes
142 posts

Better Moogling them first instead of Googling ^^
____________
Roundhousekick to the face, baby!
#
February 2, 2007, 10:43
Mezzmer
Square-theorist
792 posts

because dennis is a poo poo

are you my friendly neighbour Moogle? <3
____________
#

Message Board > Programming > Maximum length of arguments when calling a program from command prompt

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!