Results 1 to 6 of 6

Thread: whats the limit for commandline arguments?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    whats the limit for commandline arguments?

    I'm dragging a lot of files to my app's exe file and it's supposed to open them. I tried to drag 1700 files at the same time and dropped them on my app's exe, but windows gave me an error and said that it can not find my app. I tried this same thing with some other random programs and got the same error message. So I'm wondering, what's the limit to the number of files you can pass as commandline arguments to a program? I'm gussing windows puts a limitation on this
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmm weird I cant do it with more than 23 files
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Member McBain2's Avatar
    Join Date
    Sep 2003
    Location
    UK, Glos.
    Posts
    60
    Environment / CreateProcess limit is 32767 characters - which is the one I'd think applies in your case.

    NT DOS (cmd.exe) command line is limited to 8192
    Old 'DOS' was 127 i think.

    I may be wrong though!


    23 files seems a tad small to be hitting the above limit though.

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by McBain2
    Environment / CreateProcess limit is 32767 characters - which is the one I'd think applies in your case.

    NT DOS (cmd.exe) command line is limited to 8192
    Old 'DOS' was 127 i think.

    I may be wrong though!


    23 files seems a tad small to be hitting the above limit though.
    hmm thanks
    well the files all have really long names. I didnt know there was even a limit
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    have you tried doing one file, then two files, then 3 files yadda yadda? seems tedious but it would be a sure-fire way to see if there's one file in particular clogging your system so-to-say.

  6. #6

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by thephantom
    have you tried doing one file, then two files, then 3 files yadda yadda? seems tedious but it would be a sure-fire way to see if there's one file in particular clogging your system so-to-say.
    yeah stopped working at 23
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width