xiv
CONTENTS
Removing a Directory Tree with the
DelTree
Command . . . . . . . . . . . . . . . . . . . . . . . 28
Modifying Files with the Edlin Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Repairing System Databases with the ESEnTUtl Utility . . . . . . . . . . . . . . . . . . . . . . . 30
Decompressing Files with the Expand Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Creating Directories with the
MD
and
MkDir
Commands . . . . . . . . . . . . . . . . . . . . . 35
Moving Files and Renaming Files and Directories with the
Move
Command . . . . . 36
Setting and Viewing Application Paths with the
Path
Command . . . . . . . . . . . . . . . 37
Storing and Retrieving Directories with the
PushD
and
PopD
Commands . . . . . . . 38
Recovering Lost Files with the Recover Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Removing a Directory with the
RD
and
RmDir
Commands . . . . . . . . . . . . . . . . . . . . 39
Renaming a File or Directory with the
Ren
and
Rename
Commands . . . . . . . . . . . . . 40
Replacing Existing Files with the Replace Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Sorting File Content with the Sort Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Associating a Folder to a Drive with the Subst Utility . . . . . . . . . . . . . . . . . . . . . . . . . 43
Displaying a Directory Structure with the Tree Utility . . . . . . . . . . . . . . . . . . . . . . . . 44
Validating File Operations with the
Verify
Command . . . . . . . . . . . . . . . . . . . . . . . . . 45
Performing Bulk File Transfers with the XCopy Utility . . . . . . . . . . . . . . . . . . . . . . . 45
Performing Robust File Transfers with the RoboCopy Utility . . . . . . . . . . . . . . . . . . 47
Displaying Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Working with Line Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Printing Data Files with the Print Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Outputting Data Files with the
Type
Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Performing a Formatted Printout with Notepad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Determining File and Directory Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Determining the Current Directory and Changing Directories with
the
CD
and
ChDir
Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Comparing Two Files with the Comp Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Performing Advanced File Comparison with the FC Utility . . . . . . . . . . . . . . . . . . . 62
Working with File Associations and Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Taking Ownership of Files with the TakeOwn Utility . . . . . . . . . . . . . . . . . . . . . . . . . 65
Performing Backups with the NTBackup Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Performing Backups with the WBAdmin Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Start Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Get Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Working with ODBC Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Configuring the ODBC Environment with the ODBCConf Utility . . . . . . . . . . . . . . 70
Creating an ODBC Data Source at the Command Line . . . . . . . . . . . . . . . . . . . . . . . . 72
Managing the Windows Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Modifying the Registry with the RegEdit Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Scripting Registry Entries with the RegIni Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Adding and Removing Servers with the RegSvr32 Utility . . . . . . . . . . . . . . . . . . . . . 74
Getting Started with Command Line Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Chapter 3 • Discovering the System Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Getting System Status Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Obtaining Driver Information with the DriverQuery Utility . . . . . . . . . . . . . . . . . . . 78
Obtaining DirectX Status with the DXDiag Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
46163.book Page xiv Monday, February 26, 2007 6:16 PM