7zip код ошибки 2

Icon Ex Номер ошибки: Ошибка 2
Название ошибки: 7-Zip Error Code 2
Описание ошибки: Ошибка 2: Возникла ошибка в приложении 7-Zip. Приложение будет закрыто. Приносим извинения за неудобства.
Разработчик: Igor Pavlov
Программное обеспечение: 7-Zip
Относится к: Windows XP, Vista, 7, 8, 10, 11

Описание «7-Zip Error Code 2»

«7-Zip Error Code 2» — это стандартная ошибка времени выполнения. Разработчики Igor Pavlov обычно оценивают 7-Zip с помощью серии модулей для удаления ошибок в соответствии с отраслевыми стандартами. Тем не менее, возможно, что иногда ошибки, такие как ошибка 2, не устранены, даже на этом этапе.

«7-Zip Error Code 2» может возникнуть у пользователей 7-Zip даже при нормальном использовании приложения. Во время возникновения ошибки 2 конечный пользователь может сообщить о проблеме в Igor Pavlov. Затем Igor Pavlov исправляет эти дефектные записи кода и сделает обновление доступным для загрузки. Поэтому, когда вы сталкиваетесь с запросом на обновление 7-Zip, это обычно связано с тем, что это решение для исправления ошибки 2 и других ошибок.

Почему возникает ошибка времени выполнения 2?

Сбой устройства или 7-Zip обычно может проявляться с «7-Zip Error Code 2» в качестве проблемы во время выполнения. Мы рассмотрим основные причины ошибки 2 ошибок:

Ошибка 2 Crash — ошибка 2 блокирует любой вход, и это может привести к сбою машины. Если 7-Zip не может обработать данный ввод, или он не может получить требуемый вывод, это обычно происходит.

Утечка памяти «7-Zip Error Code 2» — когда происходит утечка памяти 7-Zip, это приведет к вялой работе операционной системы из-за нехватки системных ресурсов. Повреждение памяти и другие потенциальные ошибки в коде могут произойти, когда память обрабатывается неправильно.

Ошибка 2 Logic Error — Логическая ошибка возникает, когда ПК производит неправильный вывод, даже когда пользователь вводит правильный вход. Это происходит, когда исходный код Igor Pavlov вызывает уязвимость при обработке информации.

В большинстве случаев проблемы с файлами 7-Zip Error Code 2 связаны с отсутствием или повреждением файла связанного 7-Zip вредоносным ПО или вирусом. Как правило, решить проблему можно заменой файла Igor Pavlov. В некоторых случаях реестр Windows пытается загрузить файл 7-Zip Error Code 2, который больше не существует; в таких ситуациях рекомендуется запустить сканирование реестра, чтобы исправить любые недопустимые ссылки на пути к файлам.

Распространенные проблемы 7-Zip Error Code 2

Эти проблемы 7-Zip, связанные с 7-Zip Error Code 2, включают в себя:

  • «Ошибка программного обеспечения 7-Zip Error Code 2. «
  • «7-Zip Error Code 2 не является программой Win32. «
  • «Извините, 7-Zip Error Code 2 столкнулся с проблемой. «
  • «7-Zip Error Code 2 не может быть найден. «
  • «7-Zip Error Code 2 не может быть найден. «
  • «Ошибка запуска программы: 7-Zip Error Code 2.»
  • «Не удается запустить 7-Zip Error Code 2. «
  • «Ошибка 7-Zip Error Code 2. «
  • «Ошибка в пути к программному обеспечению: 7-Zip Error Code 2. «

Эти сообщения об ошибках Igor Pavlov могут появляться во время установки программы, в то время как программа, связанная с 7-Zip Error Code 2 (например, 7-Zip) работает, во время запуска или завершения работы Windows, или даже во время установки операционной системы Windows. При появлении ошибки 7-Zip Error Code 2 запишите вхождения для устранения неполадок 7-Zip и чтобы HelpIgor Pavlov найти причину.

Истоки проблем 7-Zip Error Code 2

Проблемы 7-Zip и 7-Zip Error Code 2 возникают из отсутствующих или поврежденных файлов, недействительных записей реестра Windows и вредоносных инфекций.

Точнее, ошибки 7-Zip Error Code 2, созданные из:

  • Поврежденная или недопустимая запись реестра 7-Zip Error Code 2.
  • Файл 7-Zip Error Code 2 поврежден от вирусной инфекции.
  • 7-Zip Error Code 2 злонамеренно или ошибочно удален другим программным обеспечением (кроме 7-Zip).
  • Другое приложение, конфликтующее с 7-Zip Error Code 2 или другими общими ссылками.
  • Поврежденная установка или загрузка 7-Zip (7-Zip Error Code 2).

Продукт Solvusoft

Загрузка
WinThruster 2023 — Проверьте свой компьютер на наличие ошибок.

Совместима с Windows 2000, XP, Vista, 7, 8, 10 и 11

Установить необязательные продукты — WinThruster (Solvusoft) | Лицензия | Политика защиты личных сведений | Условия | Удаление

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

EpicRocco11 opened this issue

Jan 28, 2020

· 17 comments

Assignees

@aonez

Comments

@EpicRocco11

Configuration
Keka version: [e.g. 1.1.24 (3421)]
macOS version: [e.g. 10.13.6 (18G2022)]

Describe the bug
Extraction of «[filename].7z.001» failed. Error code 2 using «p7zip»
Fatal error
I’ve followed some steps on other threads and still can’t extract the file.

To Reproduce
Steps to reproduce the behavior:

  1. Go to file in downloads
  2. Open with Keka
  3. Begins extracting file
  4. Almost instantly fails and produces error code: Error code 2 using «p7zip»
    Fatal error

Expected behavior
I presume it would extract the file normally

Screenshots
image

Additional context
I’ve tried certain methods but it still won’t work

@EpicRocco11

No way, I get aonez?! I see him in like every possible thread.

@EpicRocco11

And yes, I’m extracting an .iso file for the Wii emulator Dolphin, please don’t judge.

@aonez

Can this file be shared? You can also let me know at info@keka.io

On Tue, 28 Jan 2020 at 19:38, EpicRocco11 ***@***.***> wrote:
And yes, I’m extracting an .iso file for the Wii emulator Dolphin, please
don’t judge.


You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub
<#513?email_source=notifications&email_token=AADVHI5ZTRVTGMMCYFKIN4LRAB3UDA5CNFSM4KMXIAS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKENQ7I#issuecomment-579393661>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADVHI6SWA3J2UJD6X4YOJDRAB3UDANCNFSM4KMXIASQ>
.

@EpicRocco11

@aonez

Maybe for privacy will be better, up to you

@EpicRocco11

Sonic Colors [SNCE8P].7z.001

@EpicRocco11

That didn’t work did it…
Lemme try again

@EpicRocco11

Github doesn’t support that file type (.7z)

@EpicRocco11

@EpicRocco11

The mail is sending, its 1.33GB so its taking time

@EpicRocco11

The email sent a while ago, sorry I forgot to let you know

@aonez

@EpicRocco11 usually parted files consist in more that one part. You just sent 001 part. Don’t you have other parts?

@EpicRocco11

@aonez

@EpicRocco11 the file you’ve sent is incomplete, that’s why it fails. If you have the source (link) where you’ve downloaded it let me know here or in the mail.

@EpicRocco11

@aonez

Look at the comments in that page. That file is broken. You should search another way to get that game.

@EpicRocco11

Ok, I’ll let you know if it works on another site

2 participants

@aonez

@EpicRocco11

Are you trying to use 7-Zip, but are you getting the error message ‘2’?

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

On this page, you will find more information about the most common causes and most relevant solutions for the 7-Zip error ‘2’. Do you need help straight away? Visit our support page.

Error information

How to solve 7-Zip error 2

We’ve created a list of solutions which you can follow if you want to solve this 7-Zip problem yourself. Do you need more help? Visit our support page if you need professional support with 7-Zip right away.

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

Have you found a solution yourself, but it is not in the list? Share your solution in the comments below.

Need more help?

Do you need more help?

Tech experts are ready to answer your questions.

Ask a question

Configuration

  • Keka version: 1.2.50 (4808)
  • macOS version: 10.15.7
  • iMac 14,3

Describe the bug

I have downloaded a file several times and tried to decompress it using Keka (as recommended by VW)
The file I download is located at: https://app-connect.volkswagen.com/mapupdates/download/#download
‘Europe — Bundle 1’
I have now tried with two different version dates (one previous version, and the current version) with the same result.
I am trying to decompress the file to an SD card using the built in SD card reader.
The media I am using is an empty SanDisk Ultra, 32GB 120MS/s factory formatted (and later formatted on the iMac) as MS-DOS (Fat 32).
Each time, near completion of the decompression process, I receive the same result: Error code 2 using «p7zip», Fatal Error

To Reproduce

The error happens simply as part of the standard decompression process, near the end of its run.
I have copied the log file below, from my latest attempt.

Thank you for your help!

2021-12-15 08:42:13.615 Dev mode enabled
2021-12-15 08:42:13.616 READER: Dev reader mode enabled
2021-12-15 08:42:13.616 NOTIFICATION: Dev notifications mode enabled
2021-12-15 08:42:13.616 Running on OS X/macOS version 10.15.7 (Build 19H1519)
2021-12-15 08:42:13.616 Running sandboxed Keka (MAS) version 1.2.50 (4808)
2021-12-15 08:42:13.617 Used localization: en
2021-12-15 08:42:21.740 DEV: Dismissing delayed tasks
2021-12-15 08:42:26.811 DEV: Bookmarks updated: 3
2021-12-15 08:42:26.812 DEV: Checking tasks queue
2021-12-15 08:42:26.831 DEV: Starting queued task
2021-12-15 08:42:26.842 DEV: Path set as unavailable: /Volumes/NO NAME/DiscoverMedia2_EU-AS_1810_V15.kextraction
2021-12-15 08:42:26.852 DEV: OS: Version 10.15.7 (Build 19H1519)
2021-12-15 08:42:26.852 DEV: Keka: v1.2.50-r4808 (MAS) (Sandboxed) (en)
2021-12-15 08:42:26.852 DEV: Format detected: 7Z
2021-12-15 08:42:26.853 DEV: Binary used: keka7z
2021-12-15 08:42:26.853 DEV: Arguments: (
x,
«/Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z»,
«-o/Volumes/NO NAME/DiscoverMedia2_EU-AS_1810_V15.kextraction/Operation»,
«-aou»,
«-xr!__MACOSX»,
«-xr!.DS_Store»,
«-xr!.localized»,
«-xr!._«,
«-xr!.FBC
«,
«-xr!.Spotlight-V100»,
«-xr!.Trash»,
«-xr!.Trashes»,
«-xr!.background»,
«-xr!.TemporaryItems»,
«-xr!.fseventsd»,
«-xr!.com.apple.timemachine.*»,
«-xr!.VolumeIcon.icns»
)
2021-12-15 08:42:27.002 READER:
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Modified by aONe for Keka

Scanning the drive for archives:
0M Scan /Users/marcus/Desktop/
2021-12-15 08:42:27.003 READER:
2021-12-15 08:42:27.011 READER: 1 file, 16063003944 bytes (15 GiB)

Extracting archive: /Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z

2021-12-15 08:42:27.035 READER: —
Path = /Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z
Type = 7z
Physical Size = 16063003944
Headers Size = 37842
Method = LZMA2:24
Solid = +
Blocks = 9

0%
2021-12-15 08:42:27.448 READER: 0% 35
2021-12-15 08:42:28.267 READER: 0% 105
2021-12-15 08:42:28.670 READER: 0% 139
2021-12-15 08:42:29.274 READER: 0% 207
2021-12-15 08:42:29.474 READER: 0% 229
2021-12-15 08:42:29.675 READER: 0% 251
2021-12-15 08:42:29.876 READER: 0% 271
2021-12-15 08:42:31.794 READER: 0% 428
2021-12-15 08:42:31.994 READER: 0% 442
2021-12-15 08:42:33.396 READER: 0% 546
2021-12-15 08:42:33.596 READER: 0% 565
2021-12-15 08:42:33.796 READER: 0% 586
2021-12-15 08:42:33.996 READER: 0% 606
2021-12-15 08:42:35.533 READER: 0% 702
2021-12-15 08:42:36.146 READER: 0% 738
2021-12-15 08:45:43.177 READER: 20% 6546
2021-12-15 08:48:07.348 READER: 44% 6577
2021-12-15 08:49:17.085 READER: 55% 6587
2021-12-15 08:50:42.251 READER: 68% 6598
2021-12-15 08:51:56.591 READER: 80% 6616
2021-12-15 08:52:39.570 READER:
ERROR: E_FAIL

2021-12-15 08:52:39.571 READER:
2021-12-15 08:52:40.768 READER:
Archives with Errors: 1

2021-12-15 08:52:40.888 DEV: Checking ended task
2021-12-15 08:52:40.889 Setting extraction error code: 2
2021-12-15 08:52:40.897 DEV: Checking tasks queue
2021-12-15 08:52:40.901 DEV: Path set as unavailable: /Volumes/NO NAME/maps 2
2021-12-15 08:52:40.901 DEV: Path already set as unavailable: /Volumes/NO NAME/maps 2
2021-12-15 08:52:40.910 DEV: Path set as available: /Volumes/NO NAME/maps 2
2021-12-15 08:52:40.911 DEV: Path set as available: /Volumes/NO NAME/DiscoverMedia2_EU-AS_1810_V15.kextraction
2021-12-15 08:52:40.911 DEV: Error code 2
2021-12-15 08:52:40.913 NOTIFICATION: Notify task…
2021-12-15 08:52:40.913 NOTIFICATION: Notify with title: Extraction failed
2021-12-15 08:52:40.914 NOTIFICATION: Notify with informativeText: Extraction failed
2021-12-15 08:52:40.914 DEV: (
«OS: Version 10.15.7 (Build 19H1519)»,
«Keka: v1.2.50-r4808 (MAS) (Sandboxed) (en)»,
«Format detected: 7Z»,
«Binary used: keka7z»,
«Arguments: (\n x,\n «/Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z»,\n «-o/Volumes/NO NAME/DiscoverMedia2_EU-AS_1810_V15.kextraction/Operation»,\n «-aou»,\n «-xr!__MACOSX»,\n «-xr!.DS_Store»,\n «-xr!.localized»,\n «-xr!._«,\n «-xr!.FBC«,\n «-xr!.Spotlight-V100»,\n «-xr!.Trash»,\n «-xr!.Trashes»,\n «-xr!.background»,\n «-xr!.TemporaryItems»,\n «-xr!.fseventsd»,\n «-xr!.com.apple.timemachine.*»,\n «-xr!.VolumeIcon.icns»\n)»,
«\n7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21\np7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)\nModified by aONe for Keka\n\nScanning the drive for archives:\n 0M Scan /Users/marcus/Desktop/»,
«»,
«1 file, 16063003944 bytes (15 GiB)\n\nExtracting archive: /Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z\n»,
«—\nPath = /Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z\nType = 7z\nPhysical Size = 16063003944\nHeaders Size = 37842\nMethod = LZMA2:24\nSolid = +\nBlocks = 9\n\n 0%»,
» 0% 35″,
» 0% 105″,
» 0% 139″,
» 0% 207″,
» 0% 229″,
» 0% 251″,
» 0% 271″,
» 0% 428″,
» 0% 442″,
» 0% 546″,
» 0% 565″,
» 0% 586″,
» 0% 606″,
» 0% 702″,
» 0% 738″,
» 20% 6546″,
» 44% 6577″,
» 55% 6587″,
» 68% 6598″,
» 80% 6616″,
«\nERROR: E_FAIL\n»,
«»,
«\nArchives with Errors: 1\n\n»,
«Error code 2»
)
2021-12-15 08:52:41.021 NOTIFICATION: Notification didDeliverNotification
2021-12-15 08:52:41.021 NOTIFICATION: {
path = «/Users/marcus/Desktop/DiscoverMedia2_EU-AS_1810_V15.7z»;
type = 3;
}

7-Zip

A free file archiver for extremely high compression

  • Summary

  • Files

  • Reviews

  • Support

  • Wiki

  • Tickets ▾

    • Support Requests
    • Patches
    • Bugs
    • Feature Requests
  • News

  • Discussion

Menu

exit code 2 if a memory or drive error


Created:

2023-02-20

Updated:

2023-02-26

  • alex

    Hello.
    1) Do I understand correctly that 7-Zip will exit with exit code 2 if a memory or drive error occurs during the packaging process?
    2) is there a chance that with an exit code of 0, the archive may be created corrupted?

    I need to understand whether I should test backup archives immediately after creation.

  • Igor Pavlov

    It’s low probability to get some undetected failure.
    For example, RAM failure can be reason of data corruption.
    But such RAM/CPU failures are rare cases, if CPU and RAM are not overclocked.

    Drive error is also possible. It will be not detected by 7-zip.
    But you need to flush system’s write/read cache to test it correctly.
    By default Windows will not read real data from drive after writing. Instead Windows will read data from cache.
    So you must do 3 steps for full testing:
    1) create archive
    2) flush system cache
    3) test archive

    But cache flush operation will slow down whole system, because
    another useful cached data must be read again after that.

     

    Last edit: Igor Pavlov 2023-02-20

    • alex

      cause memory problems:
      the appearance of oxides on the contacts ram.
      dust in ram slots.
      motherboard malfunctions (for example, swollen electrolytes).

      that is, the only way to check the correctness of compression without clearing the windows cache is by counting the hashes of the files from the archive and comparing them with the hashes of the originals?
      Or will that not help either?

       

      Last edit: alex 2023-02-20

      • Igor Pavlov

        «by counting the hashes of the files from the archive»
        you will not get real data from drive, you will get compressed data from windows cache.
        To exclude drive failures you must clear file cache after writing and before reading.
        To exclude another errors you can count hashes.

  • alex

    and there is no way to cheat the cache?
    add archive to archive?
    or rename the file in the archive before unpacking (if it’s only 1)?

    • Igor Pavlov

      File cache in Windows increases the speed.
      RAM can be 20 GB/s
      drive can be 200 MB/s.
      So instead of slow 200 MB/s, you get fast 20 GB/s.
      So it can be 100 times faster to read from RAM instead of drive.
      Instead of reading from drive, it reads from cache.
      So it’s very important feature of system. And it works by default for all operations.

  • alex

    about the speed is understandable, but it is important for me to know that the archive with the backup is ok.
    maybe you know if there is something better for flushing the cache than sync from sysinternals?
    and how then does the test archive option work immediately after creation in winrar? cleans the cache or … just creates the appearance of a test?

  • Igor Pavlov

    As I wrote before, archive testing after creation can catch RAM failures, but it doesn’t catch all drive failures if file file cache is larger than archive size.
    That problem is not related to 7-zip or Winrar.
    You will have same problem with any drive write/read operations.
    For example, if you copy some file from one directory to another, you can’t be sure that there is no data corruption in written data, while file cache provides data for reading.

     

    Last edit: Igor Pavlov 2023-02-21

  • alex

    Thank you.

    On the problems with the drive, everything is clear.

    2 questions left.

    1) will 7-zip detect memory problems when creating an archive, and will the exit code be 2? or what would be the behavior of 7-zip? Is it possible to get a broken archive without any errors?

    2) why not reset the cache for a specific file? i’m not a programmer but winapi seems to allow it https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-flushfilebuffers
    Is there any plan to add such a feature? so that the archive test shows its current state.
    this would be useful for backup scripts too (why use sysinternals sync utility for everything if I need a specific file).

     

    Last edit: alex 2023-02-21

  • Igor Pavlov

    1) 7-zip at comperssion process can detect only some minor part of possible memory failures. And you have exit code=2 only for these detected cases.
    If you calculate hashes of original data and data in archive you can detect most of memory failures.

    2) I’m note sure about api, but it’s possible that this flushing doesn’t solve your problem, because it only writes data. But there is no guarantee that reading will be from drive. You must clear the cache to be sure about it.
    Cache for Write operations does two things:
    1) it suspends real writing
    2) it reads data from cache instead of real reading from drive.
    So flushing enforces real writing, but reading still can be from cache.

     

    Last edit: Igor Pavlov 2023-02-21

  • alex

    sync from sysinternals allows you to specify the drive letter to clean up.
    if the source files are on drive c and the archive is saved on drive d, what drive letter should i specify in sync?

    although it is not a fact that reading will not occur from the cache…

     

    Last edit: alex 2023-02-21

  • alex

    I created a test archive and immediately tested it with 7-zip and winrar.
    the archive is located on a samsung 870 evo 1 tb, which has a sequential read speed of up to 560 mb/s.

    7-zip showed a speed of about 900 mb/s, and this is definitely a cache. Drive activity indicator is off.
    winrar does not show the speed, but the indicator is on all the time of testing.

    I checked it several times.
    I conclude that winrar can bypass the cache and read directly from the disk.

    is there any chance for this feature to appear in 7-zip?
    an archive test should show its true state on disk.

     

    Last edit: alex 2023-02-22

    • Igor Pavlov

      cache uses only part of availabe RAM.
      do more tests with winrar with smaller archives.

      • alex

        my previous test was with a 300 mb archive.
        I repeated the test with a 100 mb archive, the result is the same.

        • alex

          I did 3 tests, this time with a 20 mb archive on a usb 2.0 flash drive.
          flash drive with activity indicator.
          7-zip reads the archive from the cache.
          wirar reads the archive from the flash drive.

          in addition, when testing such a small archive, 7-zip does not show a progress window, only a result window (does not depend on the location of the archive).

  • Igor Pavlov

    I did another test with winrar.
    1 GB file with «Store» compression method (no compression).
    «Test archived files» option switched ON.
    Compressing and testing was just 1 sec in WinRAR on HDD.
    That HDD provides less than 100 MB/s.
    Windows 10.
    So Winrar also tests from cache instead of real data reading after writing. You can test it also.

     

    Last edit: Igor Pavlov 2023-02-24

    • alex

      7-zip 22.01 x64
      winrar 6.21 x64
      windows 10 pro 21h2
      samsung 870 evo 1 tb, which has a sequential read speed of up to 560 mb/s.
      1 GB uncompressed archive created in 7-zip.
      archive test from the explorer context menu item.

      7-zip — the drive indicator is off.
      winrar — the indicator is on continuously.
      7-zip — the drive indicator is off.
      winrar — the indicator is on continuously.
      and so on.

      The screenshots show the difference in testing time.

       

      Last edit: alex 2023-02-24

      Thumbnail

      Thumbnail

  • Igor Pavlov

    Yes, Test operation in new winrar clears cache for that archive file.
    This new feature that was included to WINRAR 6.10:

      16. WinRAR attempts to reset the file cache before testing an archive.
          It helps to verify actual data written to disk instead of reading
          a cached copy.
    

    But «Test archived files» option in Winrar doesn’t clear that file cache, after archive creation.
    So «Test archived files» still reads from cache.

    Now I see in source code of unrar these lines:

    void ResetFileCache(const wchar *Name)
    {
      // To reset file cache in Windows it is enough to open it with
      // FILE_FLAG_NO_BUFFERING and then close it.
      HANDLE hSrc=CreateFile(Name,GENERIC_READ,
                             FILE_SHARE_READ|FILE_SHARE_WRITE,
                             NULL,OPEN_EXISTING,FILE_FLAG_NO_BUFFERING,NULL);
      if (hSrc!=INVALID_HANDLE_VALUE)
        CloseHandle(hSrc);
    }
    

    But now I’m not sure that I want that feature in 7-zip.
    I’ll think about it later.

    That function is simple.
    So probably some external tool can clear the cache for any file.
    if you can find such tool, you can call it before calling 7-zip.

     

    Last edit: Igor Pavlov 2023-02-24

  • alex

    unfortunately, clearing the entire cache will lead to a performance loss, and removing a specific file from the cache can only be done by the program that placed it there.

    this is exactly what the unrar code does, if I understand correctly.

    what bothers you about this decision?

  • Igor Pavlov

    You can clear cache for one file with rar.
    Just call rar between 7z calls:

    7z a a.7z file
    rar t a.7z
    7z t a.7z
    

    rar doesn’t test 7z archive, but it clears the cache for that file.

    • alex

      good crutch.
      better than xcopy /j, but still a crutch ;)


Log in to post a comment.

Понравилась статья? Поделить с друзьями:
  • 7zip ошибка данных возможно архив поврежден nvidia
  • 8000001d wifire ошибка воспроизведения что делать
  • 7zip неопознанная ошибка при архивации
  • 800 ошибка ресурса телевизор самсунг
  • 8007002 код ошибки