Fsutil sparse


Applies To: Windows Server 2003 R2,Windows 7,Windows Server 2003,Windows Vista,Windows Server 2000,Windows Server 2008,Windows Server 2008 R2

Manages sparse files.

For examples of how to use this command, see Examples.

Syntax


Copy Code

fsutil sparse [queryflag] <FileName>
fsutil sparse [queryrange] <FileName>
fsutil sparse [setflag] <FileName>
fsutil sparse [setrange] <FileName> <BeginningOffset> <Length>

Parameters

Parameter

Description

queryflag

Queries sparse.

queryrange

Scans a file and searches for ranges that may contain nonzero data.

setflag

Marks the indicated file as sparse.

setrange

Fills a specified range of a file with zeros.

<FileName>

Specifies the full path to the file including the file name and extension, for example C:\documents\filename.txt.

<BeginningOffset>

Specifies the offset within the file to mark as sparse.

<Length>

Specifies the length of the region in the file to be marked as sparse (in bytes).

Remarks

Examples

To mark a file named Sample.txt in the C:\Temp directory as sparse, type:


Copy Code

fsutil sparse setflag c:\temp\sample.txt

Additional references

Command-Line Syntax Key

Fsutil