Customizing File Types

Top  Previous  Next

You may create your own known file types and add their file signatures for scanning in Known File Types. They will appear in their respective folders on the File Types dialog box.

You can do that either by using the R-Studio's graphic interface or by direct editing the known file description file specified on the R-Studio Main settings dialog box.

Creating a Known File Types using a Graphic User's Interface

The easiest way to add your own is to use the R-Studio's graphic interface.

To create a Known File Type,

1 On the Main settings dialog box, click the Edit User's File Types... button
> The Edit User's File Types dialog box will appear
Click to enlarge
Edit User's File Types dialog box
2 Click the Create File Types button and specify File type properties
Click to enlarge
Edit User's File Types dialog box

Click to expand/collapse File Types properties

id

digit

Required

Digital file type identifier. Should be unique for each custom file type.

group

string

Optional

Specifies a file type group in which found files will appear. You may specify either your own groups or select those predefined on the File Types dialog box.

description

string

Optional

Brief file description

features

NO_SCAN

TXT_ANSI

TXT_UNICODE

Optional

Additional properties of the file type. If you want to specify several properties, they should be separated by a space.

NO_SCAN: Not to be scanned for. If this flag is used, R-Studio will not search for such file type. Such files will be shown when sorting files by their extensions.

TXT_ANSI: The file can be viewed as ANSI text. If this flag is specified, the file can be correctly represented as an ANSI text. When previewing, this file will be immediately sent to Text/hexadecimal editor.

TXT_UNICODE: The file can be viewed as UNICODE text. If this flag is specified, the file can be correctly represented as a UNICODE text. When previewing, this file will be immediately sent to Text/hexadecimal editor.

extension

<string>

Optional

File extension.

3 Click the Add Signature button, specify the signature parameters, and click the Save button
Click to enlarge
Edit User's File Types dialog box

Click to expand/collapse File signature properties

Begin

End

Specifies from where the signature begins.

If End, the offset is from the end of file to the first byte of the signature. That is, if the signature is two bytes long, the offset value should be 2.

AND

OR

Shows the order of the logical operation (union or intersection)

From

A decimal number specifying the leftmost possible offset for the file signature.

To

A decimal number specifying the rightmost possible offset for the file signature.

You may specify as many signatures as you need. Moreover, you may specify subgroups within a signature using the Add Subgroup button. The structure of such possible subgroups is described on the Customizing File Types-II help page.

> The newly specified file type will appear on the Edit User's File Types dialog box and the File Types dialog box
Click to enlarge
Edit User's File Types dialog box