Partager via


Managing disks and data

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Managing disks and data

  • Using the Windows interface

  • Using command-line tools

Using the Windows interface

The following table lists some of the most common tasks for managing disks and data, and the tools you can use to perform them. For more information, click the corresponding link under Tool or Feature.

Task Tool or feature

Back up and restore data.

Backup overview

Set properties for storage devices.

Computer Management

Analyze local volumes and consolidate fragmented files and folders on your hard disk.

Disk Defragmenter

Manage hard disks and the volumes they contain.

Disk Management

Monitor and limit disk space use on NTFS volumes.

Disk Quotas

Manage files and folders.

Managing Files and Folders

Work with network files and program even when you are not connected to the network.

Offline Files overview

Extend disk space on your server without adding more hard disks.

Remote Storage

Track a computer's removeable storage media and manage the hardware libraries that contain them.

Removable Storage

View the contents of network folders as they existed at points of time in the past.

Shadow Copies for Shared Folders

For more information about managing disks and data, see "Part One: Managing Data and Devices" at the Microsoft Windows Resource Kits Web site.

Using command-line tools

The following table lists some of the most common tasks for managing disks and data, and the command-line tools you use to perform them. For more information, click the corresponding link under Command-line tool.

Task Command-line tool

Display or modify file name extension associations.

Assoc

Display, set, or remove the read-only, archive, system, and hidden attributes assigned to files or directories.

Attrib

Display the name of the current directory or changes the current folder.

Chdir

Create and display a status report for a disk based on the file system; correct errors on the disk.

chkdsk

Display or specify whether automatic system checking is scheduled to be run on a FAT, FAT32, or NTFS volume when the computer is started.

Chkntfs

Display or alter the encryption of folders and files on NTFS volumes.

Cipher

Compare the contents of two files or sets of files byte by byte on the same drive or on different drives, or in the same directory or in different directories.

Comp

Display and alter the compression of files or directories on NTFS partitions.

Compact

Convert FAT and FAT32 volumes to NTFS.

Convert

Copy one or more files from one location to another.

Copy

Clean specified profiles of wasted space and, if user-specific file associations are disabled, remove these associations from the registry.

Cprofile

Locate and consolidate fragmented boot files, data files, and folders on local volumes.

Defrag

Delete specified files.

Del

Manage a distributed file system.

Dfscmd

Display a list of a directory's files and subdirectories.

Dir

Compare the contents of two floppy disks.

Diskcomp

Copy the contents of the floppy disk in the source drive to a formatted or unformatted floppy disk in the destination drive.

Diskcopy

Manage objects (disks, partitions, or volumes) by using scripts or direct input.

DiskPart

Expand one or more compressed files.

Expand

Compare two files and display the differences between them.

Fc

Used in conjunction with the command redirection pipe character (|), a command filter is a command within a command that reads the command's input, transforms the input, and then writes the output. Filter commands help you sort, view, and select parts of a command output. Filter commands divide, rearrange, or extract portions of the information that passes through them.

Using filters

Searches for a specific string of text in a file or files. After searching the specified file or files, find displays any lines of text that contain the specified string.

Find

Searches for patterns of text in files using regular expressions.

Findstr

Enable or disable flat temporary folders.

Flattemp

Format the disk in the specified volume to accept Windows files.

Format

Check to see if the specified amount of disk space is available before continuing with an installation process.

Freedisk

Perform many FAT and NTFS file system related tasks, such as managing reparse points, managing sparse files, or dismounting a volume.

Fsutil

Displays or modifies file types used in file name extension associations. Used without parameters, ftype displays the file types that have open command strings defined.

Ftype

Replace locked operating system files.

Inuse

Create, change, or delete the volume label (that is, the name) of a disk.

Label

Manage File Server for Macintosh servers, volumes, directories, and files.

Macfile

Creates a directory or subdirectory.

Mkdir

Create, delete, or list a volume mount point. Mountvol is a way to link volumes without requiring a drive letter.

Mountvol

Move one or more files from one directory to a specified directory.

Move

Back up disks and data.

Ntbackup

Query, display, or disconnect open files or files opened by network users; enable or disable the system Maintain Objects List global flag.

Openfiles

Copy files between a Windows Server 2003 family, or Windows XP computer and a system running rshd, the remote shell service (daemon).

Rcp

Remove (delete) a directory.

Rd

Recover readable information from a bad or defective disk.

Recover

Change the name of a file or a set of files.

Rename (ren)

Replace files in the destination directory with files in the source directory that have the same name; add unique file names to the destination directory.

Replace

Remove (delete) a directory.

Rmdir (Rd)

Manage media resources using Removable Storage

Rsm

Manage Remote Storage.

Rss

Read input, and sort data; write the results to the screen, to a file, or to another device.

Sort

Associate a path with a drive letter.

Subst

Display the directory structure of a path or of the disk in a drive graphically.

Tree

Displays the contents of a text file. Use the type command to view a text file without modifying it.

Type

Display the disk volume label and serial number, if they exist.

Vol

Displays current volume shadow copy backups and all installed shadow copy writers and providers in the command window. The Windows Server 2003 family version of this command contains more parameters than the one that is in Windows XP.

Vssadmin

Locate and display all files that match the given parameter.

Where

Copy files and directories, including subdirectories.

Xcopy

For more information about the command shell, see Command shell overview. For information about tools used to manage the command-prompt window, see Manage the command-prompt window. For an alphabetical list of all of the command-line tools, see Command-line reference A-Z.