I have a FB6 project that creates 4 7-Zip archives. These archives have 400+ files in them. One of the archives is failing but I can't determine why. I tried copying the generated command to a batch file and I get the error "The input line is too long" when running the batch file. The generated command line is 12,000 characters long!
Although I believe the above error is from cmd.exe, I also think 7z.exe is failing because the command line is too long also. So I tried copying the list of files to a text file and used 7z's -i@ option to specify the list file and it is working.
So now my project writes the file list to a text file named "files.lst", adds a single file to the action's file list, named -i@files.lst, and then deletes the file once the archive is created. This is working.
Please enhance the 7-Zip Create Archive action to write the file list to a text file and pass the -i@ option to 7z instead of a long list of files. This could be an option on the action for those that may only be archiving a file or two and the extra I/O to generate the text file is overkill.
Thanks!