How VSS Treats Binary Files

VSS makes a distinction between text files (files that contain only characters) and binary files (all others). For most operations, you can treat text and binary files exactly the same VSS uses its highly disk-efficient reverse delta storage on all files, text and binary.

It is important to understand how VSS determines the type of a file and how VSS treats these two.

How VSS Identifies Files

When you add a file to VSS, it's automatically assigned a type: text or binary. The default mechanism for creating this assignment is a simple test: VSS scans the file for NULL characters (bytes with value 0). If it finds such a character, VSS identifies the file as binary.

Although generally accurate, this method may on occasion incorrectly assign the text type to a binary file. Therefore, VSS allows you to explicitly set the file type.

When you add a file, you can set the file type option: Auto-Detect, Binary, or Text. Auto-Detect is the default. After you add a file, it retains the type it was originally given, unless you explicitly change it.

Note   Use the General tab in the Properties dialog box on the File menu to view and change the file type setting.

How VSS Handles Files

There are significant differences in how VSS treats binary and text files: