Special Registry Switches

Search and Replace has several special registry switches that are available for advanced usage.

Visit the Search & Replace home page for a link to an easy to use special configuration utility that can be used to specify some of the below switches and also reset all the program settings.

Warning: We present this information for the benefit of advanced users. Do not modify your windows registry if you are not familiar with the risks involved. A careless change to may cause your computer to stop functioning and require that you reinstall your operating system and all applications. If you are not familiar with working with the registry directly, use the configuration utility above.

See our Registry Toolkit utility for a registry search/replace tool or write support@funduc.com.

In case do need to do so, all keys under
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32]

can be removed manually (exit the program first). Whenever all or some of those keys are missing at launch time, Search and Replace will recreate them with the program default values. You will only have to restore keys you manually added or changed.

Special Registry Switches for Search and Replace V 5.7+

REGEDIT4

 

# The registry switches below are read by Search and Replace to

# control some special features. Some switches do not have a

# counterpart in the graphical interface Options dialogs and must

# be set manually. Use the information here to make these settings.

 

# These settings are intended for advanced users. You assume all

# responsibility for making the registry changes carefully.

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** DISABLE REPLACE CAPABILITY ***

# Use this switch to deactivate replace ability. Specify

# No Replace”=dword:00000001 to disable replacing.

“No Replace”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** MULTIPLE SEARCH HITS ON ONE LINE ***

# For v 5.6+. When Show Hits on one line is enabled, if

# a search term has more than one hit on a line that line

# is listed only once in the Search Results List. The standard

# behavior is to list each hit separately in the Search Results List.

# It is recommended you use this function only if you need it.

# To enable, specify “Show Hits on one line”=dword:00000001

“Show Hits on one line”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** SEQUENCE REGULAR EXPRESSION COUNTERS OR NOT ***

# This is for version 4.1+. The program normally sequences

# regular expression counter replacements across files when

# a starting value is specified. If the below setting is

# changed to “Count across files”=dword:00000000 the program

# will started counting anew with each file instead of counting

# across all files.

“Count across files”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** MAXIMUM CHARACTERS TO DISPLAY ***

# This is normally set in Options-Search. That dialog has limit

# checks on the value input by the user. You can set this directly

# via the below registry switch. For example, to see more than 512

# characters on a line uncomment line below for 1024 per line and

# remove the one after.

#“Max Display Chars”=dword:00000400

“Max Display Chars”=dword:00000200

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** COPY SEARCH RESULTS HEADER INFORMATION ***

# Note: In v 5.2 this setting can be made in Options|Display.

# By default, if one or more lines are highlighted in the Search

# Results list and Ctrl+C is used to copy to the clipboard, the

# program includes information about the Search/Replace strings,

# Mask/Path, and special settings. In version 5.0+, to not include

# the extra information, specify “Copy Header Info”=dword:00000000.

# This switch has a similar impact on the material included in the

# output report (if enabled). See Options|Output.

“Copy Header Info”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** PRIVACY FUNCTIONS – CLEAR HISTORY ****

# For version 5.1+. To cause the program to clear one or more of

# the history lists, exit Search and Replace if it is running and

# make the setting described here. The next time you exit the

# program those items will be purged.

#

# To clear just one history list, specify only that dword value. To

# clear several, add their values together (decimal math) and

# specify that as a dword. dword values are saved as hex but the

# Windows Registry Editor lets you specify decimal values.

#

# Function Value

# ———————- —–

# Clear Search History 01

# Clear Replace History 02

# Clear Paths 04

# Clear Masks 08

#

# Some Example settings:

# Search History – “Clear Flags”=dword:00000001

# Replace History – “Clear Flags”=dword:00000002

# Search & Replace – “Clear Flags”=dword:00000003

# Path – “Clear Flags”=dword:00000004

# Mask – “Clear Flags”=dword:00000008

# Path & Mask – “Clear Flags”=dword:0000000c

# Search & Path – “Clear Flags”=dword:00000005

# Search & Mask – “Clear Flags”=dword:00000009

# Search, Replace, Path – “Clear Flags”=dword:00000007

# Search, Replace, Mask – “Clear Flags”=dword:0000000b

# Replace & Path – “Clear Flags”=dword:00000006

# Replace, Path, Mask – “Clear Flags”=dword:0000000e

# All items – “Clear Flags”=dword:0000000f

“Clear Flags”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** PROCESS BINARY FILES ***

# Note: In ver 5.1+ this switch can be set in Options|Search.

# By default, Search and Replace searches any file. In version 5.0+

# a switch is available to skip files that the program determines

# are ‘binary’. When “Process Binary Files”=dword:00000000 is

# specified the program will skip binary files regardless of the

# File Mask specified. The file(s) will still be listed in the

# Search Results but they will be reported as having zero hit. This

# switch can also be specified in a script.

“Process Binary Files”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** XML NAME EXTENSIONS ****

# By default the program automatically handles UTF-8 .xml files.

# The XML Extensions= switch can be used to add other file name

# extensions to handle as .xml. Multiple extensions should be

# separated by the ; character. Use lower case. Do not use the

# * character. For example, XML Extensions=.xml;.sml

“XML Extensions=”=”.xml”

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** ZIP FILE NAME EXTENSIONS ****

# The ZIP Mask= switch determines the file extensions the program

# will process as ZIP format archives when search ZIPs is enabled.

# The default is *.zip. JAR searching can also be enabled by

# specifying “ZIP Mask”=”*.zip;*.jar”. Please note that only PKZip

# format archives can be searched.

“ZIP Mask”=”*.zip”

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** FILE MASK WITHIN ZIPs ****

# To process some specific file masks within ZIPs, make a setting

# for the “ZIP File Mask”=”" switch. This is normally not specified.

# When not specified, the File Mask setting for the program itself

# is used. Please take care if you do specify a “ZIP File Mask”= as

# this overrides the general File Mask setting.

“ZIP File Mask”=”"

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** DISABLE WARNINGS DURING INTERACTIVE USE ****

# In version 4.9+ this switch can be specified in Options|Display.

# To disable various warnings and message boxes during interactive use,

# specify “Quiet Mode”=dword:00000001. The /u switch does the same

# thing if you are using the command line switches. You can also set

# this switch in Options|Display.

“Quiet Mode”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** RAISED VS FLAT TOOLBAR BUTTONS ***

# If you want raised toolbar buttons, change the “Flat Toolbar”=

# switch to “Flat Toolbar”=dword:00000000. The default is a

# flat toolbar.

“Flat Toolbar”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** PREVENT MULTIPLE PROGRAM INSTANCES ***

# In version 5.3+ this can be set in Options|General.

# Search and Replace normally permits multiple instances of the program

# to be launched. If you only want one instance of the program to

# be possible, specify “One Instance”=dword:00000001

# Please note that enabling ‘One Instance’ may affect the behavior of

# the Explorer shell extension — the program does not inherit the

# highlighted file name(s) when ‘one instance’ is enabled.

“One Instance”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** BINARY EDITOR TO USE ****

# In version 4.9+ this can be set in Options|General.

# To be used if you wish to use a binary editor for binary files

# Uncomment line below and change as needed using keywords below

# and also %LENGTH% for the length of the selection if needed.

“Binary Editor”=”HEXVIEW \”%path%\” -S%start% -E%end%”

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** DISABLE PROGRESS METER ***

# In version 3.7+ you can control this in Options-General. For

# version 3.6 specify “Show Progress Dialog”=dword:00000000
to

# deactivate the progress dialog.

“Show Progress Dialog”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** DISABLE AUTOMATIC SCROLLING OF SEARCH RESULTS ***

# In version 3.7+ you can control this in Options-General. For

# version 3.6 specify “Scroll Results”=dword:00000000

“Scroll Results”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** DISPLAY & OUTPUT PREFIXES ****

# In version 4.8+ these settings can be made in the Options-Output.

# For v 4.3 – 4.7 the switches below can be used to customize the

# line prefixes for text and binary files. The numbering is in MS

# printf style formatting — d and l are supported. Anything before

# the % char and after d or l are output as literal text. The data

# cannot be blank or there will be problems opening files in the

# viewer on the correct line. Also, if you leave out all numbers

# there may be problems viewing the files. If you do not want the

# switches, rename the values to something else or take them out

# completely. Below are the default settings:

# “Line Prefix”=”%2d: “

# “Binary Prefix”=”0x%-6lx: “

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** SPECIAL REPLACEMENT CASE HANDLING ***

# In version 4.9+ these settings can be set in Options|Replace.

# For v 4.4 – 4.8+, this switch is used for special capitalization

# handling during replacements. Please see the F1 Help topic

#Special Case Handling‘ for more information.

# The possible values are:

# “Replace Processing”=dword:00000000 – Default, No special

# effects.

# “Replace Processing”=dword:00000001 – Capitalize words

# during replaces.

# “Replace Processing”=dword:00000002 – Match existing letter

# letter case.

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** BUFFER SIZE ***

# Note: In v 5.2+ this setting can be specified in Options|Search.

# The size of the memory block used by the program when reading

# files can be adjusted. For most uses we suggest leaving this at

# default, with is “Buffer Size”=dword:00019000 (102,400 bytes

# decimal). If nothing is specified the default is assumed.

# The lowest value permitted is dword:00000400 (1024 bytes decimal).

# Note: Buffer Size may have indirect effect on Maximum Regular

# Expression Size (Options|Search). When Buffer Size is set lower

# than Maximum Regular Expression Size, by limiting the size of

# block(s) searched the effective Max Regular Expression Size is

# limited to Buffer Size. The default Max Regular Expression Size

# is 32767 bytes. If your search requires this span as a minimum,

# Buffer Size should be at least “Buffer Size”=dword:00007FFF

# (32767 decimal).

# Exit Search and Replace before making changes to this setting.

“Buffer Size”=dword:00019000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Flags]

# *** NUMBER OF BUFFERS TO PROCESS ***

# IMPORTANT: This switch is for Search only. During replace the

# program must process the entire file(s)!

# You can limit the number of blocks to process in each file by

# specifying the number of blocks to process. The default if

# nothing is specified is “Num Buffers To Process”=dword:00000000,

# which is all blocks, or the entire file. This switch can be

# used in conjunction with the “Buffer Size” switch above. For

# example, to search only the first 26,000 bytes of all files

# specify:

# “Buffer Size”=dword:00006590

# “Num Buffers To Process”=dword:00000001

# Note: If the ‘Stop Processing After One Hit’ switch is specified

# in Options|Search, that switch takes precedence if a hit is found

# within the number of blocks specified.

# Exit Search and Replace before making changes to this setting.

“Num Buffers To Process”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Settings]

# *** DISABLE CHECKBOXES IN SCRIPT EDITOR ***

# This is for version 4.1+. When the below is set to

# “Script Checkboxes”=dword:00000000 the program will not display

# the checkboxes for individual search/replace items in a script.

# If not specified, script checkboxes will be displayed.

“Script Checkboxes”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Settings]

# *** SPECIAL DIALOG FONT SWITCHES ***

# In version 4.2+, the switches below are used to change

# the font face and size used for the main dialog and script

# editor. Currently there is no GUI choice in program Options

# to specify these settings so they must be done
manually.

# A special utility is available on our www site to set these.

# Go to the Search and Replace product page and follow the link

# to the ‘Special Configuration Utility’.

#

# Here are some notes if you want to make the change manually.

#

# – Dialog Font – The name used for the Dialog Font is the name

# returned by the operating system for your font list. Do not use

# the font name you see in Explorer if you navigate to the \Fonts

# folder. Instead go to the Search and Replace Options|General

# tab and examine the View Context Font setting. Use the ‘Font’

# selector to see the list of font names. Make a note of the name

# you want and then Cancel the dialog so you don’t change your

# View Context settings. Then use that same font name string for

# the Dialog Font switch below.

#

# – Dialog Font Size is a dword value. Do not specify a decimal

# value! Here are some common dword settings:

# 8 pt – Dialog Font Size=dword:00000008

# 9 pt – Dialog Font Size=dword:00000009

# 10 pt – Dialog Font Size=dword:0000000a

# 11 pt – Dialog Font Size=dword:0000000b

# 12 pt – Dialog Font Size=dword:0000000c

# 14 pt – Dialog Font Size=dword:0000000e

# “Dialog Font Size”=dword:00000008

# “Dialog Font”=”Trebuchet MS”

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Settings]

# *** LIMIT SUBDIR RECURSE LEVELS ***

# For v 4.6+, the switch below can be used to limit how many

# subdirectory levels the program will recurse when Search

# Subdirectories is enabled. A value of dword 0 means there is

# no limit. This switch does not control whether Search

# Subdirectories is active or not. Use the Search Subdirectories

# switch in the main dialog or your script to control subdir

# searching in general.

# “Directory Depth”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Options]

# *** FILE NAME SORT IN SEARCH RESULTS LIST ***

# This is controlled in Options-Search.

# “Sort File Names”= 1 is Name, 2 is type(extension), 3 is date

# 4 is size, 5 is path.

“Sort File Names”=dword:00000001

“Sort Ascending”=dword:00000001

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Options]

# *** FILE OPERATIONS DIALOG ***

# Specify the default target path for File Operations dialog using

# this switch:

# “File Operations Path”=”d:\\temp”

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Options]

# *** CUSTOMIZE VIEW CONTEXT DISPLAY SPACES FOR TAB CHARS ***

# Use this switch to control the number of spaces to expand tab

# characters in the internal context viewer. 00000004 is the

# program default.

“View Context Tabs to Spaces”=dword:00000004

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Options]

# *** DISPLAY FILE DATE AND TIME ***

# This switch is controlled in Options|Output.

# The Show File Date and Size= switch displays this information

# in the Search Results list. Note that this info may not be

# accessible to F3, ‘Search in Search Results list’ function.

# The values are:

# “Show File Date and Size”=dword:00000001

“Show File Date and Size”=dword:00000000

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\Options]

# *** DISABLE INTERNAL CONTEXT VIEWER ***

# In version 4.9+ this setting (and more) can be established in

# Options|General. In v 4.6-4.8, if the below switch is set to

# “Edit lines with Default Viewer”=dword:00000001, the program will

# use the editor/viewer specified in the Options|General – ‘If no

# association use’ field instead of the internal context viewer.

# This means that if you double click on a search hit, your external

# editor/viewer will open the file. The default is:

# “Edit lines with Default Viewer”=dword:00000000

 

[HKEY_CURRENT_USER\Funduc Software Inc.\SR32\Settings]

# *** WORK PATH ***

# If you need to install sr32.exe in a path where you do not also have

# write permissions, use this setting to specify a path to use for

# the \Favorites folder and several temporary files created by the

# program during ordinary use. The temporary files are SRUNDO.BAT

# (created after each replace), EXPLORER.SRS (used for search/replace

# launched from Explorer, SrOut.htm (HTML Output dump), SRDUMP.SRS

# (generated by pressing ctrl+Script Editor toolbar button)

# “Work Path”=”"

 

[HKEY_CURRENT_USER\Software\Funduc Software Inc.\SR32\FLAGS]

# *** UNIX GREP MODE ***

# NOTE: This switch is experimental and is completely unsupported.

# DO NOT
USE this except on experimental data.

# You have been warned.

# To use UNIX-Style regular expression syntax instead of the style used

# by our standard Search and Replace syntax, uncomment the line below and

# remove the one after

#“UNIX RegExp”=dword:00000001

“UNIX RegExp”=dword:00000000

Special Registry Switches