Sign in to follow this  
Followers 0
Cape-City

How can I ignore too many commandline Parameters ?

4 posts in this topic

#1 ·  Posted (edited)

Hi,

I'm trying to code a little Playlist Generator for my HTPC Project. When I

e.g. open there a directory with pictures, every single picture came in one

commandline parameter. If there are too many commandline parameters

given to my proggy - it still crashed (stack overflow). I recoded my program,

so i only need the path to the pictures and generate the playlist with the

FindFile and FindFileNext method. The only problem is, my program further

crashed, when too many commandline parameters are given to it. What can i

do ? Is there no way, to just ignore everything above e.g. cmdline[15] ?

Greetz

Cape-City

Edited by Cape-City

Share this post


Link to post
Share on other sites



Sorry, no. All the command line parameters MUST be recieved by any windows program, and with autoit, there is not a current limit on command line parameters.


Who else would I be?

Share this post


Link to post
Share on other sites

No, the problem he is getting is related to the cutoff point at which autoit accepts command line parameters. There is no current limit, which causes a stack overflow in the program. This means that any and every autoit script has this problem and there is nothing he can do in the script to change it. A change has to be made to autoit itself.


Who else would I be?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0