The first thing you will need to do is LOGIN
to csFind-N-Replace (see screenshot to the right).
When you installed the script you
selected a username and password. Type that username and password into the
appropriate fields and click LOGIN to csFind-N-Replace to enter the script
To reset the username and password refer to
README file for instructions. Follow the same instructions used to
change the username and password to look up the username and password if you
happen to forget what they are.
you first login to csFind-N-Replace you are taken to the MANAGE page (see screenshot to
There are ten primary
functions to this script:
- SEARCH THROUGH FILES WITH THESE EXTENSIONS
- CURRENT WORKING DIRECTORY
- INCLUDE SUBDIRECTORIES
- FIND WHAT
- MATCH CASE
- REGULAR EXPRESSION
- REPLACE WITH
- MAKE BACKUP
- SEARCH REPORT
SEARCH THROUGH FILES WITH THESE EXTENSIONS
Specify the file extensions you wish to have the script open and search
through. Separate each extension using a comma. You DO NOT need to add the "."
in the file extension.
CURRENT WORKING DIRECTORY
The current working directory is the first directory that will be searched
through. You can change this directory by pressing the "Change Directory"
button. This will open the directory navigation tool. Select the directory you
want to set as the working directory and click the Set Directory button.
You can also use this tool to view the source of
files on the server. As you are cruising through the server you will see the
files listed with a "View Source" link next to it. Click this link to open a
popup that will contain the source of the file.
Specify this option to allow the script to crawl the subdirectories that are
contained in the current working directory.
Use the text field to specify the block of text you wish to search for.
This will force the script to match edit only occurrences with matching cases.
This option allows advanced users to specify Regular Expressions in the
search field. This extends the power of the script exponentially.
This is the text field that will be used to replace the text specified in
the "Find What" field.
This will force the script to create backup files of all the files that are
modified. The files are copied as "filename.ext.bak"
Use this to "audit" the execution of the script. This DOES NOT actually edit
the files. You will still be presented with a full report of occerrences.
The search report indicated the number of files that were searched, it
specifies the number of occurrences that are present within these files. It
also specifies the total number of files that were edited.
The body of the report lists each file and occurrences within each file.
The files that have been edited are listed in the body first, followed by
the files that have been searched but not edited.