Command-Line Usage

Command-line hashing is also limited to 25 files in the [Evaluation Version Limits].


NGWS Hasher can be run from the command line for scripting and batch processing. When no arguments are supplied, the normal graphical interface starts.

NGWSHasher.exe --file "C:\path\file.txt"

NGWSHasher.exe --file "C:\path\file.txt" --algo SHA-256

NGWSHasher.exe --file "C:\path\file.txt" --out "C:\path\hash.txt"

NGWSHasher.exe --dir "C:\folder" --subdirs --pattern "*.exe" --max 50 --out "hashes.txt"

NGWSHasher.exe --file "C:\path\file.txt" --quiet


Options

Option

Short

Description

--file

-f

Path to a single file to hash

--dir

-d

Path to a directory to hash

--algo

-a

Hash algorithm (default: SHA-256)

--out

-o

Write results to the specified file

--pattern

-p

File pattern when hashing a directory (default: *.*)

--subdirs

-s

Include subdirectories

--max

-m

Maximum number of files to process

--quiet

-q

Print only the hash (no status messages or filenames)

--help

-h

Show command-line help

--csv


Output as CSV ("filename", "hash"). Includes the file name even -- when quiet is also used.

--

-v

Show the version number and exit.

--help

-h

Show command-line help



Quiet mode

Use --quiet (or -q) when you want only the hash value. This is useful for scripts that capture the output.

NGWSHasher.exe --file "C:\data\report.pdf" --quiet

Output: A1B2C3D4E5F67890...


Output format

  • Normal mode: filename hash
  • Quiet only: hash
  • CSV (with or without --quiet): "filename", "hash".

Exit codes

  • 0 — Success
  • 1 — Error (file/directory not found, invalid arguments, etc.)

These can be checked in batch files with %ERRORLEVEL%.

Command-Line Usage

NGWS Hasher can be run from the command line for scripting and batch processing. When no arguments are supplied, the normal graphical interface starts

NGWSHasher.exe --file "C:\path\file.txt"

NGWSHasher.exe --file "C:\path\file.txt" --algo SHA-256

NGWSHasher.exe --file "C:\path\file.txt" --out "C:\path\hash.txt"

NGWSHasher.exe --dir "C:\folder" --subdirs --pattern "*.exe" --max 50 --out "hashes.txt"

NGWSHasher.exe --file "C:\path\file.txt" --quiet

NGWSHasher.exe --dir "C:\folder" --csv --out "hashes.csv"

NGWSHasher.exe --version


Notes

  • Full paths are recommended so the command works from any directory.
  • In evaluation mode the maximum number of files is limited to 25.
  • The original files are never modified.