Menu

ConfigFile

Aleksey

Config file is used to store default options, which could be overridden with command line options.

Under Windows config file is searched in the following order:

  1. .rhashrc file in the current directory
  2. %HOMEDRIVE%%HOMEPATH%\rhashrc

On Linux/FreeBSD and other OS'es RHash looks for config at the following places:

  1. .rhashrc in the current directory
  2. $HOME/.rhashrc
  3. /etc/rhashrc

Syntax

The syntax of a config file line is

variable = value

where a variable can be a name of any program option, e.g. magnet, printf, percents.
If a command line option doesn't require a value, then value in config file shall be set to 1',on' or `yes'.

Comment lines, i.e. lines starting with #' or;' are ignored.

Example

Example of a config file

; ignore case in filenames, when verifying crc files
ignore-case=on

; Don't print OK messages when verifying hash file
skip-ok=on

; accept only .sha1/.sha256 files while recursively checking directories
crc-accept=.sha1,.sha256

; print percents when hashing/verifying a file
percents=on


Related

Wiki: Home

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.