7z a abc.7z -r C:\a\333.txt Do search for files and/or* folders named 333.txt in folder C:\a\ and search in subfolders too. 7z a abc.7z C:\a\333.txt 7z a abc.7z -r- C:\a\333.txt Do search for files and/or* folders named 333.txt in folder C:\a\ but don't search in subfolders. *and/or is defined by the -spm switch
7z a test.7z C:\test\* -spm
It should work with both .7z and .zip formats.
You can try the following command: 7za a C:\archive.7z -r C:\PythonPrograms\* -xr!C:\PythonPrograms\*venv\* (added) or: 7za a C:\archive.7z -r C:\PythonPrograms\* -xr!C:\PythonPrograms\*venv\* -spm
You can try the following command: 7za a C:\archive.7z -r C:\PythonPrograms\* -xr!C:\PythonPrograms\*venv\*
It seems the new hash methods are not implemented in the console version: C:\Users\D\Downloads\7z2409-extra\x64>7za.exe h -scrcSHA384 Cmfoff.7z 7-Zip (a) 24.09 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29 Scanning 1 file, 149178653 bytes (143 MiB) System ERROR: Not implemented C:\Users\D\Downloads\7z2409-extra\x64>7za.exe t Cmfoff.7z * -scrcSHA384 7-Zip (a) 24.09 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29 Scanning the drive for archives: 1 file, 149178653 bytes (143 MiB)...
and Windows 11
Windows 8.1