Folder & File Renaming Rules 

SharePoint does not permit certain characters in folder and file names. Dockit provides an ability to rename invalid character(s) to valid character(s) and also support any character(s) to be renamed using rules, thereby eliminating the tedious step of renaming the source folders / files. You can create naming rules, save them as Naming Rules and re-use them in your import tasks.

Dockit provides two default renaming rules ('File Rule', 'Folder Rule') for renaming files and folders respectively. These rules will replace the invalid SharePoint characters with hyphen (-) character.

Dockit uses 'Regular Expressions' technique which enables you to create generic renaming rules in order to specify the pattern for file name conventions in Folder & File Renaming rules page. The 'regular expressions' technique is widely used in software where pattern matching is crucial.

To specify a rule for invalid character sequence to valid character sequence:


Select New from the Templates Tools pane. The new template will appear and enter an unique template name for the template as shown below:

2. Once the new renaming rule template created, 
  1. Specify the SharePoint invalid character in Find textbox and its valid character in Replace textbox, then click button.
  2. Click button to remove the selected naming rule.


You can Edit the existing renaming rule by selecting the appropriate rule.


If you have to order the rules in the grid using the navigation buttons available on the right side of the grid, click Save button to save the rules in that order.


The following are valid wildcard characters that can be used to create naming rules in Dockit:

* (asterisk) Denotes any number of characters to be left
? (question mark) Denotes at least one character position to be truncated / replaced
Sample Renaming Rules 
Sample renaming rules:

File Name Find Replace Result Remarks
SampleV1 *V1 {empty} Sample Truncate V1, if the file ends with V1
SampleV1 *V1 A SampleA Replace V1 with A, if the file name ends with V1
Hello_World Hello_* {empty} World Truncate Hello_, if the file name starts with Hello_
Hello_World *_World {empty} Hello Truncate _World, if file name ends with _World
SampleV1 v? {empty} Sample Truncate V and the file name character following it (immediately succeeding character), if the file names contains V and followed by any one character.
Sample ?p {empty} Sale Truncate one character preceding the letter p in the file name.
SampleV12 V?? {empty} Sample Truncate two characters following the character / letter V in the file name.
SampleFileVersion *File* {empty} SampleVersion Truncate the word 'File' in any position in the file name.
Sample.Matrix . Dot SampleDotMatrix
Sample?File ? Text SampleTextFile
Hello*World * {empty} HelloWorld
Sample$ $ Dollar SampleDollar
Sample^File ^ {empty} SampleFile
Sample+Document + Plus SamplePlusDocument
Hello<World < {empty} HelloWorld
Hello>World > {empty} HelloWorld
[Document [ Word WordDocument
Word] ] Document WordDocument
(File ( Sample SampleFile
Sample) ) Document SampleDocument