# 7-Zip Create Archive File Lists

**URL:** https://www.finalbuilder.com/forums/t/7-zip-create-archive-file-lists/4007
**Category:** Feature Requests
**Created:** [January 23, 2009, 6:59am UTC](https://www.finalbuilder.com/forums/t/7-zip-create-archive-file-lists/4007 "2009-01-23T06:59:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonrobertson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@jonrobertson](https://www.finalbuilder.com/forums/u/jonrobertson)
#### Post date: [January 23, 2009, 6:59am UTC](https://www.finalbuilder.com/forums/t/7-zip-create-archive-file-lists/4007/1 "2009-01-23T06:59:20Z")

</div>

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](mailto:-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!
