#                       Update Toolkit
#                         Version 2.2
#                     Funduc Software, Inc.
#              Copyright 2001-2001, All Rights Reserved
#  http://www.funduc.com      http://www.searchandreplace.com

# Listed below is the script syntax for Update Toolkit operations
# on windows .lnk files. Please note that the program ALWAYS 
# replaces. The program defaults to offering replacement prompts 
# but specify Prompt On Replace=1 for your testing.

# Script sections are demarked with bracketed - [ActionX] -
# titles, where X are numbers demarking the sequence that 
# the Actions should be performed in. The can be specified 
# in any order in the script file itself - the program parses
# the entire script and performs [Action2] before [Action3]
# even though [Action2] might be written last in the file.
# The [Default] section (optional) should always be the first 
# item in the script. [Default] is used to set program 
# options for all [Action]'s. Individual [Action]'s can 
# have their own options that in turn override [Default] 
# for that action.

# IMPORTANT NOTE
# ==============
# At least one [Action] must be present even if [Default] is 
# present. [Default] by itself will do nothing. If your script 
# has only one Action, we suggest you not specify [Default] and 
# instead supply all your parameters under [Action1]. 
# At minimum, a path must be specified for each [Action]. The 
# other parameters are optional.
# ==============================================================

# How to perform a "Check-Only" without searching for a specific
# string or making a replace? 
# To perform a check-only, omit the Search_string= and 
# Replace_string= switches for that [Action]

# Pathnames with spaces should NOT be surrounded by quote
# characters.

# If your script has multiple actions and if you are using output 
# file(s), use a different Output_File= specification for each 
# [Action] section. File writes to the output file are 'overwrite', 
# not 'append'.

[Default]

# *** SEARCH PATH ***
# Use Path= to specify the path to operate on. Do 
# not surround paths with spaces with quote characters.
Path=c:\winnt

# *** FILE MASK ***
# The default is Mask=*.lnk;*.url
# More masks are possible. Use the ~ character to exclude.
# For example:
# .lnk;*.url;~\utilities\     Skip shortcuts located C:\utilities 
# *.lnk;*.url;~\utilities\*\  As above but also skips subdirs under 
#                               C:\utilities
# *.lnk;~\*\utilities\*\       Skips shortcuts in any subdir named 
#                               utilities & any shortcuts located in 
#                               any subdir under a subdir named 
#                               utilities. No internet shortcuts will 
#                               be processed because *.url is not 
#                               specified
# s*.lnk;~\recycled\          Shortcuts beginning with 's' and ignore 
#                               the recycled bin.
Mask=*.lnk;*.url

# *** IGNORE TARGET PATHS ***
# To skip shortcuts based the path in their "target" field, 
# specify one or more paths in the Ignore Drives= switch. Separate 
# multiple path with the pipe character |. For example:
# Ignore Drives=f:\|d:\work\|q:\path\path2

#*** SEARCH / REPLACE STRINGS ***
# Use the switches below to specify the search and replace strings. 
# Do NOT surround strings w/ spaces with quotes. The program does not
# do search-only operations so use care if you use a blank replace 
# string. Consider specifying Prompt On Replace=1 for your testing
# to give you control of replaces.
# To perform a 'Check Only', omit Search_string= and Replace_string= 
# entirely.
#Search_string=c:\windows
#Replace_string=c:\windows

#*** OUTPUT FILE ***
# If Output_File is blank or not set in Program 
# Options from the last time the program was run interactively,
# no output file is produced.
Output_File=d:\test\sd\out.txt

#*** OUTPUT FILE APPEND MODE ***
# The output file is normally in overwrite mode. To write in 
# append mode, use the Append to Output File=1 setting.
#  0 = Overwrite
#  1 = Append mode
Append to Output File=0

#*** SUBDIRECTORY SEARCHING ***
# The choices for Search_subdir are 
#  0 = Off
#  1 = On 
# The default is 0.
Search_subdir=1

#*** DISPLAY ALL RESULTS OR JUST THOSE WITH PROBLEMS ***
# When "Show All" is enabled, the results for all files 
# will be displayed. When it is disabled, only the results
# for shortcuts that have problems will be listed. The choices 
# are: 
#  0 = Show All is disabled
#  1 = Show All is enabled
Show All=0

#*** VERIFY PATHS BEFORE REPLACEMENTS ***
# The Check before replace= switch determine whether or not the 
# program verifies paths in the Target, Start In, and Icon paths 
# before allowing a replace in any of those fields. When enabled, 
# if any of one cannot be verified, no replace is made for those 
# fields. When Check before replace=0, no verification is attempted. 
# The choices for the "Check before replace" switch are 
#  0 = Do not check before replace
#  1 = Check before replace
# The default is 1 if this switch is not specified.
Check before replace=1

# *** DISPLAY PROGRESS METER ***
# To enable/disable the progress meter, use these settings:
#  0 = No progress meter is displayed.
#  1 = Show progress meter
# If not specified, Default = 0
Show Progress=0

# *** REPLACEMENT PROMPTING ****
# To enable/disable replacement prompts: 
#  0 = No prompting
#  1 = Yes, prompting
Prompt On Replace=1

#*** CHANGE AUTOMATIC NETWORK SHORTCUT RESOLUTION ***
# By default, the program does not change the tracking setting 
# for a network shortcut. You can enable/disable automatic resolution 
# with the switches:
# Make Tracking=1
# or
# Make Non Tracking=1
# (Remove appropriate comment character above)

# *** ADDITIONAL ACTIONS *** 
[Action2]
Path=c:\winnt
Search_string=d:\program files\tools\sr
Replace_string=f:\tools\sr
Output_File=c:\tools\sd\results2.txt
Search_subdir=1
Show All=0
Check before replace=1

[Action3]
Path=c:\winnt
Search_string=d:\tools\dirtkt
Replace_string=f:\tools\dirtkt
Search_subdir=1
