OSDN Git Service

mirror .org
[sevenzip/7-Zip.git] / www.7-zip.org / faq.html
index c28a3ca..0c0f73e 100644 (file)
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML><HEAD>
-<META http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=UTF-8">
-<LINK href="/style.css" rel="stylesheet" type="text/css">
-<TITLE>Frequently Asked Questions (FAQ)</TITLE>
-<META name="keywords" content="7z, lzma, 7-zip, faq">
-</HEAD>
-<BODY>
-<TABLE cellspacing=10 cellpadding=10 border=0 width="100%"><TR>
-<TD class="MenuColumn" valign="top">
-<TABLE cellpadding=2 cellspacing=0 border=0 width="100%">
-<TR><TD><IMG width=110 height=63 src="/7ziplogo.png" alt="7-Zip" border=0></TD></TR>
-<TR><TD><HR></TD></TR></TABLE>
-<TABLE cellpadding="2" cellspacing="0" border="0">
-<TR><TD><A href="./" class="MenuLink">Home</A></TD></TR>
-<TR><TD><A href="7z.html" class="MenuLink">7z Format</A></TD></TR>
-<TR><TD><A href="sdk.html" class="MenuLink">LZMA SDK</A></TD></TR>
-<TR><TD><A href="download.html" class="MenuLink">Download</A></TD></TR>
-<TR><TD><A href="register.html" class="MenuLink">Donate</A></TD></TR>
-<TR><TD><SPAN class="MenuCurrent">FAQ</SPAN></TD></TR>
-<TR><TD><A href="support.html" class="MenuLink">Support</A></TD></TR>
-<TR><TD><A href="links.html" class="MenuLink">Links</A></TD></TR>
-</TABLE>
-<TABLE cellpadding=2 cellspacing=0 border=0 width="100%">
-<TR><TD><HR></TD></TR>
-<TR><TD><A href="http://sourceforge.net"><IMG src="http://sourceforge.net/sflogo.php?group_id=14481" width=88 height=31 border=0 alt="SourceForge Logo"></A></TD></TR>
-<TR><TD><A href="http://sourceforge.net/projects/sevenzip/">7-Zip on SF.net</A></TD></TR>
-<TR><TD><A href="http://sourceforge.net/forum/forum.php?forum_id=45797">Forum</A></TD></TR>
-<TR><TD><HR></TD></TR>
-</TABLE>
-<P>
-<B>English</B><BR>
-<A href="http://7z.sparanoid.com/">Chinese Simpl.</A><BR>
-<A href="http://www.spiroo.be/7zip/">French</A><BR>
-</P>
-
-</TD>
-<TD valign="top">
-
-<H1>Frequently Asked Questions (FAQ)</H1>
-
-<UL>
-  <LI><A href="#user_faq">User FAQ</A></LI>
-  <LI><A href="#developer_faq">Developer FAQ</A></LI>
-</UL>
-
-<H2><a name="user_faq"></a>User FAQ</H2>
-
-<H4>Can I use 7-Zip in a commercial organization?</H4>
-<P>Yes, 7-Zip is free software. You can use it on any computer. You don't need to 
-register or pay for 7-Zip.</P>
-
-<H4>Why do the add, delete and update operations not work for some existing archives?</H4>
-<P>The current version of 7-Zip can't execute some operations with .7z archives that have been 
-created with the "solid" option switched on. You can disable solid mode with -ms=off switch 
-in command line</P>
-
-<H4>What about ACE archive support?</H4>
-<P>Support for ACE archives could be implemented in 7-Zip, if the source code 
-of that format was available, and the license allowed it. The Unace.dll 
-library from the authors of the ACE program is not 
-compatible with the plugin interface of 7-Zip (Unace.dll works with files, but 
-7-Zip only allows plugins to work with abstract streams). For this reason 7-Zip can't use 
-Unace.dll without a complex wrapper.</P>
-
-<H4>Why doesn't the command line version add files without extensions to an archive?</H4>
-<P>You're probably using a *.* wildcard. 7-Zip doesn't use the operating system's wildcard mask parser, 
-and consequently treats *.* as any file that has an extension. 
-To process all files you must use the * wildcard instead or omit the wildcard altogether.</P>
-
-<H4>Why can't 7-Zip open some ZIP archives?</H4>
-<P>In 99% of these cases it means that the archive contains incorrect headers.
-Other ZIP programs can open some archives with incorrect headers, since these programs 
-just ignore errors.</P>
-<P>If you have such archive, please don't call the 7-Zip developers about it.
-Instead try to find the program that was used to create the archive and inform the developers 
-of that program that their software is not ZIP-compatible.</P>
-
-<H4>How can I install 7-Zip in silent mode?</H4>
-
-<P>Use the "/S" parameter to do a silent installation and the "/D=dir" parameter 
-to specify the "output directory". These options are case-sensitive. 
-7-Zip uses the NSIS installer by Nullsoft.</P>
-
-
-<H2><a name="developer_faq"></a>Developer FAQ</H2>
-
-<H4>Why are there linking errors when I compile 7-Zip or LZMA SDK with Visual C++ 6.0?</H4>
-
-<P>To compile sources you will need Visual C++ 6.0 or a later version. 
-Some files also require a new Platform SDK from microsoft.com:</P>
-<A href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm"><B>
-http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm</B></A>
-or
-<A href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/"><B>
-http://www.microsoft.com/msdownload/platformsdk/sdkupdate/</B></A>
-
-<P>If you are using MSVC, specify the SDK directories at the top of the "Include files" and 
-"Library files" directory lists. These can be found under "Tools / Options / Directories".</P>
-<P>The latest Platform SDK is not compatible with MSVC6. So you must use
-Windows Server 2003 PSDK (February 2003) with MSVC6.</P>
-
-<H4>Can I use the EXE or DLL files from 7-Zip in a Commercial Application?</H4>
-
-<P>Yes, but you are required to specify in your documentation (1) that  
-you used parts of the 7-Zip program, (2) that 7-Zip is licensed under the GNU LGPL license and 
-(3) you must give a link to www.7-zip.org, where the source code can be found.</P>
-
-<H4>How can I add support for 7z archives to my application?</H4>
-
-<P>One way is to use the 7za.dll (available from sf.net for download). The 7za.dll 
-works via COM interfaces. It, however, doesn't use standard COM interfaces for 
-creating objects. You can find a small example in the source code. A full example is 
-7-Zip itself, since 7-Zip works via this dll also. There are other applications 
-that use 7za.dll such as WinRAR, PowerArchiver and others.</P>
-
-<P>The other way is to call the command line version: 7za.exe.</P>
-
-<H4>Can I use the source code of 7-Zip in a commercial application?</H4>
-
-<P>Since 7-Zip is licensed under the GNU LGPL you must follow the rules of that license. 
-In brief, it means that any LGPL'ed code must remain licensed under the LGPL. For 
-instance, you can change the code from 7-Zip or write a wrapper for some code
-from 7-Zip and compile it into a DLL; but, the source code of that DLL (including 
-your modifications / additions / wrapper) must be licensed under the LGPL or GPL.
-Any other code in your application can be licensed as you wish.
-This scheme allows users and developers to change LGPL'ed code and recompile
-that DLL. That is the idea of free software. Read more here: 
-<A href="http://www.gnu.org/">http://www.gnu.org/</A>.
-
-You can also read about the <A href="sdk.html">LZMA SDK</A>, which is available 
-under a more liberal license.</P>
-
-<HR><P><SMALL>Copyright (C) 2008 Igor Pavlov.</SMALL></P>
-</TD></TR></TABLE></BODY></HTML>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
+<HTML><HEAD>\r
+<META http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=UTF-8">\r
+<LINK href="/style.css" rel="stylesheet" type="text/css">\r
+<TITLE>Frequently Asked Questions (FAQ)</TITLE>\r
+<META name="keywords" content="7z, lzma, 7-zip, faq">\r
+</HEAD>\r
+<BODY>\r
+<TABLE cellspacing=10 cellpadding=10 border=0 width="100%"><TR>\r
+<TD class="MenuColumn" valign="top">\r
+<TABLE cellpadding=2 cellspacing=0 border=0 width="100%">\r
+<TR><TD><IMG width=110 height=63 src="/7ziplogo.png" alt="7-Zip" border=0></TD></TR>\r
+<TR><TD><HR></TD></TR></TABLE>\r
+<TABLE cellpadding="2" cellspacing="0" border="0">\r
+<TR><TD><A href="./" class="MenuLink">Home</A></TD></TR>\r
+<TR><TD><A href="7z.html" class="MenuLink">7z Format</A></TD></TR>\r
+<TR><TD><A href="sdk.html" class="MenuLink">LZMA SDK</A></TD></TR>\r
+<TR><TD><A href="download.html" class="MenuLink">Download</A></TD></TR>\r
+<TR><TD><SPAN class="MenuCurrent">FAQ</SPAN></TD></TR>\r
+<TR><TD><A href="support.html" class="MenuLink">Support</A></TD></TR>\r
+<TR><TD><A href="links.html" class="MenuLink">Links</A></TD></TR>\r
+</TABLE>\r
+<TABLE cellpadding=2 cellspacing=0 border=0 width="100%">\r
+<TR><TD><HR></TD></TR>\r
+</TABLE>\r
+\r
+<P>\r
+<B>English</B><BR>\r
+<A href="https://sparanoid.com/lab/7z/">Chinese Simpl.</A><BR>\r
+<A href="https://www.developershome.com/7-zip/">Chinese Trad.</A><BR>\r
+<A href="https://7zip-eo.rnbastos.com/">Esperanto</A><BR>\r
+<A href="https://www.7-zip.fr/">French</A><BR>\r
+<A href="https://www.7-zip.de/">German</A><BR>\r
+<A href="https://sevenzip.osdn.jp/">Japanese</A><BR>\r
+<A href="https://7zip.rnbastos.com/">Portuguese Brazil</A><BR>\r
+<A href="https://7zip-es.updatestar.com/">Spanish</A><BR>\r
+<A href="http://7zip-thai.inetbridge.net/">Thai</A><BR>\r
+<A href="https://7zip-vi.updatestar.com/">Vietnamese</A><BR>\r
+</P>\r
+\r
+</TD>\r
+<TD valign="top">\r
+\r
+<H1>Frequently Asked Questions (FAQ)</H1>\r
+\r
+<UL>\r
+  <LI><A href="#user_faq">User FAQ</A></LI>\r
+  <LI><A href="#developer_faq">Developer FAQ</A></LI>\r
+</UL>\r
+\r
+<H2><a name="user_faq"></a>User FAQ</H2>\r
+\r
+<H4>Can I use 7-Zip in a commercial organization?</H4>\r
+<P>Yes, 7-Zip is free software. You can use it on any computer. You don't need to \r
+register or pay for 7-Zip.</P>\r
+\r
+<H4>How can I set file associations to 7-Zip in Windows 7 and Windows Vista?</H4>\r
+<P>You must run 7-Zip File Manager in administrator mode. \r
+Right-click the icon of 7-Zip File Manager, and then click <B>Run as administrator</B>.\r
+Then you can change file associations and some other options.</P>\r
+\r
+<H4>Why 7z archives created by new version of 7-Zip can be larger than archives created by old version of 7-Zip?</H4>\r
+\r
+<P>New versions of 7-Zip (starting from version 15.06) use another file sorting \r
+order by default for solid 7z archives.</P>\r
+\r
+<P>Old version of 7-Zip (before version 15.06) used file sorting "by type" ("by extension").</P>\r
+<P>New version of 7-Zip supports two sorting orders:</P>\r
+<UL>\r
+  <LI>sorting by name - default order.</LI>\r
+  <LI>sorting by type, if '<B>qs</B>' is specified in <B>Parameters</B> field in "Add to archive" window, \r
+     (or <B>-mqs</B> switch for command line version).</LI>\r
+</UL>\r
+\r
+<P>You can get big difference in compression ratio for different sorting methods,\r
+if dictionary size is smaller than total size of files.\r
+If there are similar files in different folders, the sorting "by type" can provide \r
+better compression ratio in some cases.</P>\r
+\r
+<P>Note that sorting "by type" has some drawbacks.\r
+For example, NTFS volumes use sorting order "by name", so if an archive uses \r
+another sorting, then the speed of some operations for files with unusual order \r
+can fall on HDD devices (HDDs have low speed for "seek" operations).</P>\r
+\r
+<P>You can increase compression ratio with the following methods:</P>\r
+<UL>\r
+  <LI>Increase dictionary size. It can help when 'qs' is not used.</LI>\r
+  <LI>Specify '<B>qs</B>' in <B>Parameters</B> field (or use <B>-mqs</B> switch for command line version).</LI>\r
+</UL>\r
+\r
+<P>If you think that unusual file order is not problem for you, \r
+and if better compression ratio with small dictionary is more important for you,\r
+use '<B>qs</B>' mode.</P>\r
+\r
+<H4>Why can't 7-Zip open some ZIP archives?</H4>\r
+<P>In 99% of these cases it means that the archive contains incorrect headers.\r
+Other ZIP programs can open some archives with incorrect headers, since these programs \r
+just ignore errors.</P>\r
+<P>If you have such archive, please don't call the 7-Zip developers about it.\r
+Instead try to find the program that was used to create the archive and inform the developers \r
+of that program that their software is not ZIP-compatible.</P>\r
+\r
+<P>There are also some ZIP archives that were encoded with methods unsupported by 7-Zip,\r
+for example, WAVPack (WinZip).</P>\r
+\r
+<H4>Why can't 7-Zip open some RAR archives?</H4>\r
+<P>7-Zip 9.20 supports RAR 2/3/4 formats only and doesn't support RAR5 archives.\r
+But latest versions of 7-Zip supports RAR5 archives.</P>\r
+\r
+<H4>Why does drag-and-drop archive extraction from 7-Zip to Explorer use temp files?</H4>\r
+<P>7-Zip doesn't know folder path of drop target.\r
+Only Windows Explorer knows exact drop target.\r
+And Windows Explorer needs files (drag source) as decompressed files on disk.\r
+So 7-Zip extracts files from archive to temp folder and then \r
+7-Zip notifies Windows Explorer about paths of these temp files.\r
+Then Windows  Explorer copies these files to drop target folder.</P>\r
+\r
+<P>To avoid temp file usage, you can use Extract command of 7-Zip or \r
+drag-and-drop from 7-Zip to 7-Zip.</P>\r
+\r
+<H4>Why doesn't the command line version add files without extensions to an archive?</H4>\r
+<P>You're probably using a *.* wildcard. 7-Zip doesn't use the operating system's wildcard mask parser, \r
+and consequently treats *.* as any file that has an extension. \r
+To process all files you must use the * wildcard instead or omit the wildcard altogether.</P>\r
+\r
+<H4>Why doesn't -r switch work as expected?</H4>\r
+<P>In most cases you don't need -r switch.\r
+7-Zip can compress subfolders even without -r switch.</P>\r
+<P>Example 1:</P>\r
+<PRE>  7z.exe a c:\a.7z "C:\Program Files"</PRE>\r
+<P>compresses "C:\Program Files" completely, including all subfolders.</P>\r
+<P>Example 2:</P>\r
+<PRE>  7z.exe a -r c:\a.7z "C:\Program Files"</PRE>\r
+<P>searches and compresses "Program Files" in all subfolders of C:\ (for example, in "C:\WINDOWS").</P>\r
+If you need to compress only files with some extension, you can use -r switch:\r
+<PRE>  7z a -r c:\a.zip c:\dir\*.txt </PRE>\r
+<P>compresses all *.txt files from folder c:\dir\ and all it's subfolders.</P>\r
+\r
+<H4>How can I store full path of file in archive?</H4>\r
+<P>7-Zip stores only relative paths of files (without drive letter prefix).\r
+You can change current folder to folder that is common for \r
+all files that you want to compress and then you can use relative paths:</P>\r
+<PRE>\r
+  cd /D C:\dir1\\r
+  7z.exe a c:\a.7z file1.txt dir2\file2.txt\r
+</PRE>\r
+\r
+<H4>Why can't 7-Zip use big dictionary in 32-bit Windows?</H4>\r
+<P>32-bit Windows allocates only 2 GB of virtual space per one application. \r
+Also that block of 2 GB can be fragmented (for example, by some DLL file), \r
+so 7-Zip can't allocate one big contiguous block of virtual space.\r
+There are no such limitations in 64-bit Windows. \r
+So you can use any dictionary in Windows x64, if you have required amount of physical RAM.</P>\r
+\r
+<H4>How can I install 7-Zip in silent mode?</H4>\r
+\r
+<P>For exe installer: Use the "/S" parameter to do a silent installation and the /D="C:\Program Files\7-Zip" parameter \r
+to specify the "output directory". These options are case-sensitive.</P>\r
+\r
+<P>For msi installer: Use the /q INSTALLDIR="C:\Program Files\7-Zip" parameters.</P>\r
+\r
+\r
+<H4>How can I recover corrupted 7z archive?</H4>\r
+\r
+<P>There are some possible cases when archive is corrupted:\r
+<UL>\r
+  <LI>You can open archive and you can see the list of files, but when you press \r
+      Extract or Test command, there are some errors: Data Error or CRC Error.\r
+  <LI>When you open archive, you get message "Can not open file 'a.7z' as archive"\r
+</UL>\r
+\r
+<P>It's possible to recover some data. Read about recovering procedure:\r
+\r
+<P><A href="recover.html">Recover corrupted 7z archive</A></P>\r
+\r
+<BR><BR>\r
+<H2><a name="developer_faq"></a>Developer FAQ</H2>\r
+\r
+<H4>Why are there linking errors when I compile 7-Zip or LZMA SDK with Visual C++ 6.0?</H4>\r
+\r
+<P>To compile sources you will need Visual C++ 6.0 or a later version. \r
+Some files also require a new Platform SDK from microsoft.com:</P>\r
+\r
+<P>If you are using MSVC, specify the SDK directories at the top of the "Include files" and \r
+"Library files" directory lists. These can be found under "Tools / Options / Directories".</P>\r
+<P>The latest Platform SDK is not compatible with MSVC6. So you must use\r
+Windows Server 2003 PSDK (February 2003) with MSVC6.</P>\r
+\r
+<H4>Can I use the EXE or DLL files from 7-Zip in a Commercial Application?</H4>\r
+\r
+<P>Yes, but you are required to specify in your documentation (1) that  \r
+you used parts of the 7-Zip program, (2) that 7-Zip is licensed under the GNU LGPL license and \r
+(3) you must give a link to www.7-zip.org, where the source code can be found.</P>\r
+\r
+<H4>How can I add support for 7z archives to my application?</H4>\r
+\r
+<P>One way is to use the 7z.dll or 7za.dll (available from sf.net for download). The 7za.dll \r
+works via COM interfaces. It, however, doesn't use standard COM interfaces for \r
+creating objects. You can find a small example in "CPP\7zip\UI\Client7z" folder \r
+in the source code. A full example is \r
+7-Zip itself, since 7-Zip works via this dll also. There are other applications \r
+that use 7za.dll such as WinRAR, PowerArchiver and others.</P>\r
+\r
+<P>The other way is to call the command line version: 7za.exe.</P>\r
+\r
+<H4>Can I use the source code of 7-Zip in a commercial application?</H4>\r
+\r
+<P>Since 7-Zip is licensed under the GNU LGPL you must follow the rules of that license. \r
+In brief, it means that any LGPL'ed code must remain licensed under the LGPL. For \r
+instance, you can change the code from 7-Zip or write a wrapper for some code\r
+from 7-Zip and compile it into a DLL; but, the source code of that DLL (including \r
+your modifications / additions / wrapper) must be licensed under the LGPL or GPL.\r
+Any other code in your application can be licensed as you wish.\r
+This scheme allows users and developers to change LGPL'ed code and recompile\r
+that DLL. That is the idea of free software. Read more here: \r
+<A href="https://www.gnu.org/">https://www.gnu.org/</A>.\r
+\r
+You can also read about the <A href="sdk.html">LZMA SDK</A>, which is available \r
+under a more liberal license.</P>\r
+\r
+\r
+<HR>\r
+<P><SMALL>Copyright (C) 2019 Igor Pavlov. The site is hosted at <A href="https://m.do.co/c/cab893b82fa8">Digital Ocean</A> </SMALL></P>\r
+</TD></TR></TABLE>\r
+\r
+</BODY></HTML>\r