Menu

Using CRC SHA tool via Command Line?

Mike Kirk
2016-09-12
2016-10-06
  • Mike Kirk

    Mike Kirk - 2016-09-12

    Good Afternoon!
    I think I found one of the greatest SHA Hash tools made! I would like to thank you first off for making it!
    Secondly,
    I have several files (600,000files totalling 500gb) I would like to automatically hash out using your * function. I know how to write code in python and can use the command line feature in windows to do this. I just cant figure out how to access your program in command line in windows 7. can you help???


    If there is no command line feature in your program,
    Can you please add one?
    Or
    can you add a feature to CRC SHA * ---> Output to a text file named exactly same as the file with ".CRCSHA" added to the end of the file, and make a list and for-loop to do all the files in a directory and subdirectories recursively?
    I would like to generate a separate text file to accompany my directory of ISOs I can use to verify the data, You know it would be EVEN better if you can add a feature to automatically VERYIFY the data based on the presence of the text file as well! Make it do this recursively too please!!!!

    Mike -

     
    • Roman Perich

      Roman Perich - 2016-09-29

      I used this (simple version) script for CRC - compatible with Total Commander, Servant Salamander, ... :

      7za h -scrcsha256 .\* > %TEMP%\test1.sha
      findstr /R /C:"^[0-9A-F][0-9A-F]* .*$" %TEMP%\test1.sha > %TEMP%\test2.sha
      for /f "skip=1 tokens=1,2,3*" %a in (%TEMP%\test2.sha) do if "%c" NEQ "" echo.%a %c >> _CheckSum.sha
      del /Q %TEMP%\test*.sha
      
       

      Last edit: Igor Pavlov 2016-09-29
  • Igor Pavlov

    Igor Pavlov - 2016-09-13
    7z h *
    7z h c:\folder
    7z h c:\folder\*
    
     
  • Roman Perich

    Roman Perich - 2016-09-29

    How to disable recurively ? 7za h -r0 path\mask - dont work correctly.

     
    • Igor Pavlov

      Igor Pavlov - 2016-09-29
      -x!*\
      
       
  • Roman Perich

    Roman Perich - 2016-10-06

    Good idea for -x!*\ for command prompt, but dont work in cmd script, because char ! is specialy for ENABLEEXTESION . Try script try.cmd :

    SETLOCAL ENABLEEXTENSIONS
    SETLOCAL ENABLEDELAYEDEXPANSION
    7za.exe h -scrcsha256 -x!*\ *

    Better would be to switch -r0 functioned well as a pack file.

     
    • Igor Pavlov

      Igor Pavlov - 2016-10-06

      you can use also switch -r- switch

       
  • Roman Perich

    Roman Perich - 2016-10-06

    How to set minimal compress method or only stored for any extensions. Example:
    7za a -r
    but for extension
    .7z, .avi, .jpg, ... set param store method -mx0 ?
    Now created archiv in 2 steps:
    create archiv with -mx0 for selected extension (jpg,avi,...) and second step update archiv for all files :
    7za.exe a -r -mx0 archive.7z .jpg .png
    7za.exe u -r * archive.7z

    Better would be signle step.

     
    • Igor Pavlov

      Igor Pavlov - 2016-10-06

      No way in one step now.
      Note also that if you have same jpg file in different folders, you will have better compression ratio if you don't use -mx0.

       
  • Roman Perich

    Roman Perich - 2016-10-06

    Thanks, I know, but saving a few kilobytes on each JPG and longer (de) compression is not worth it. CPU time rather will use to compress uncompressed data.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.