Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winzip command line maximum files
Message
 
 
To
01/04/2011 17:27:22
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01505845
Message ID:
01505848
Views:
67
This message has been marked as the solution to the initial question of the thread.
>From .NET, I am accessing the WinZip DLL to zip files. So, I have a ProcessFile() class which executes in background specific commands like this. When doing so for the WinZip, I am using its command line parameters to define all the options. One of them is the ability to include a list of files. Those are separated by a space in quotes. When I want to add like 40 files, for example, to zip, I guess it would make sense that I know the limits that could apply. The reason we do not zip the entire directory is because some filtering applies. So, either I benefit from the ability to add a bunch of files in the command line to be zipped or I transfer all of those files into a temporary directly and zip the directory. The first one may have a chance of running into a limit of the length of the command line either at the OS or at the WinZip level. Anyone has some information as to know the maximum number of characters a command line might support as well as WinZip itself? Because, to be safer, the second scenario might be better so any number of files might be zip without facing a limit.

Interestingly I found this http://social.msdn.microsoft.com/Forums/eu/visualfoxprogeneral/thread/feeea559-4183-4fed-9081-3879e0d087de
where Pavel specifies max command length to be 32767 chars.

See also http://www.memecode.com/docs/winzip.html
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform