redirect2web.cfg

Package: WA2L/WinTools 1.2.08
Section: Configuration Files (4)
Updated: 04 May 2019
Index Return to Main Contents

 

NAME

redirect2web.cfg - configuration file for redirect2web

 

SYNOPSIS

WA2LWinTools/etc/redirect2web.cfg

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

This is the optional configuration file for the redirect2web command.

 

FILEFORMAT

Rows starting with # are considered as comments.

The file format is OPTION=VALUE

Between the OPTION , the = and the VALUE are no spaces.

You can comment out any OPTION or completely remove the related setting line to use the default settings.

 

OPTIONS

MAPFILE
location of the map file.

In the MAPFILE setting the environment variables %USERNAME%, %USERPROFILE%, %ProgramFiles%, %ProgramFiles(x86)%, %APPDATA%, %INSTALLDIR%, and %INSTALLDRIVE% can be used.

Where the %INSTALLDIR% variable contains the base directory and the %INSTALLDRIVE% the drive letter (including :) or the UNC server name of the WA2L/WinTools package installation.

Example: MAPFILE=G:\central_config\redirect2web.map

Default: MAPFILE=etc\redirect2web.cfg

PATH
Extend system %PATH% to find the content viewer command.

See also: VIEWER= setting below and viewer field in redirect2web.map(4).

In the PATH and VIEWER setting the environment variables %USERNAME%, %USERPROFILE%, %ProgramFiles%, %ProgramFiles(x86)%, %APPDATA%, %INSTALLDIR%, and %INSTALLDRIVE% can be used.

Where the %INSTALLDIR% variable contains the base directory and the %INSTALLDRIVE% the drive letter (including :) or the UNC server name of the WA2L/WinTools package installation.

Example: PATH=%USERPROFILE%\Documents\bin\FirefoxPortable;%INSTALLDRIVE%\bin\FirefoxPortable

Default: PATH=

VIEWER
Set Web content viewer command.

See also: viewer field in redirect2web.map(4).

Example: VIEWER=FirefoxPortable.exe

Default: VIEWER=iexplore.exe

SEPARATOR
Field separator in the map file.

Example: SEPARATOR=!

Default: SEPARATOR=;

ABORTONERROR
The redirect2web command reads the map file redirect2web.map sequentially from top to bottom. With the ABORTONERROR setting it can be defined if the command should abort if an error occurs (as when a regular expression is bogus) or if it should skip the line in error and continue.

Example: ABORTONERROR=True

Default: ABORTONERROR=False

 

EXAMPLES

1) Example configuration file

# 
# redirect2web.cfg - configuration file for redirect2web
#
# [00] 09.06.2017 CWa   Initial Version
#

# Locate the map file on a central file share to
# avoid redistribution to clients on change.
#
MAPFILE=G:\central_config\redirect2web.map

# Extend %PATH% to the FireFox browser location
# In the PATH setting the environment variables %USERNAME%,
# %USERPROFILE%, %ProgramFiles%, %ProgramFiles(x86)%,
# %APPDATA% and %INSTALLDIR% can be used.
#
PATH=%USERPROFILE%\Documents\bin\FirefoxPortable;d:\bin\FirefoxPortable

# Set FireFox browser as viewer.
#
VIEWER=FirefoxPortable.exe

 

SEE ALSO

wintoolsintro(1), redirect2web(1), redirect2web.map(4),

 

NOTES

-

 

BUGS

-

 

AUTHOR

redirect2web.cfg was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2020 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
FILEFORMAT
OPTIONS
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:32:50 GMT, September 14, 2024