Cape-City Posted August 21, 2004 Share Posted August 21, 2004 (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 August 21, 2004 by Cape-City Link to comment Share on other sites More sharing options...
this-is-me Posted August 22, 2004 Share Posted August 22, 2004 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? Link to comment Share on other sites More sharing options...
Lazycat Posted August 23, 2004 Share Posted August 23, 2004 I'm not sure I understand problem right, but maybe you have to try $CmdLineRaw instead $CmdLine? This is just string with data you put into commandline, and you can handle it as you need. Maybe you explain how you script should work? Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
this-is-me Posted August 23, 2004 Share Posted August 23, 2004 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now