2.6. Advanced DOS

2.6.1. Help

Section 2.7.1 HELP

Provides Help information for Windows commands.

2.6.2. File contents commands

Section 2.7.2 TYPE

Displays the contents of a text file.

Section 2.7.3 SORT

Sorts input.

Section 2.7.4 FIND

Searches for a text string in a file or files.

Section 2.7.5 FINDSTR

Searches for strings in files.

Section 2.7.6 MORE

Displays output one screen at a time.

2.6.3. Change current screen / display

Section 2.7.7 CLS

Clears the screen.

Section 2.7.8 COLOR

Sets the default console foreground and background colors.

Section 2.7.9 PROMPT

Changes the Windows command prompt.

Section 2.7.10 TITLE

Sets the window title for a CMD.EXE session.

2.6.4. Calling and exiting batch Files

Section 2.7.11 CALL

Calls one batch program from another.

Section 2.7.12 CMD

Starts a new instance of the Windows command interpreter.

Section 2.7.13 START

Starts a separate window to run a specified program or command.

Section 2.7.14 EXIT

Quits the CMD.EXE program (command interpreter).

2.6.5. File/Folder/Directory management commands

Section 2.7.15 DIR

Displays a list of files and subdirectories in a directory.

Section 2.7.16 MD

Creates a directory.

Section 2.7.17 CD

Displays the name of or changes the current directory.

Section 2.7.18 RD

Removes a directory.

Section 2.7.19 DEL

Deletes one or more files.

Section 2.7.20 REN

Renames a file or files.

Section 2.7.21 MOVE

Moves one or more files from one directory to another directory.

Section 2.7.22 REPLACE

Replaces files.

2.6.6. Comparision commands

Section 2.7.23 COMP

Compares the contents of two files or sets of files.

Section 2.7.24 FC

Compares two files or sets of files, and displays the differences between them.

2.6.7. Date & Time commands

Section 2.7.25 DATE

Displays or sets the date.

Section 2.7.26 TIME

Displays or sets the system time.

2.6.8. Environment Variable management commands

Section 2.7.27 SET

Displays, sets, or removes Windows environment variables.

Section 2.7.28 PATH

Displays or sets a search path for executable files.

Section 2.7.29 SETLOCAL

Begins localization of environment changes in a batch file.

Section 2.7.30 ENDLOCAL

Ends localization of environment changes in a batch file.

2.6.9. Adding more funcionality to a batch file

Section 2.7.31 REM

Records comments (remarks) in batch files or CONFIG.SYS.

Section 2.7.32 ECHO

Displays messages, or turns command echoing on or off.

Section 2.7.33 PAUSE

Suspends processing of a batch file and displays a message.

Section 2.7.34 GOTO

Directs the Windows command interpreter to a labeled line in a batch program.

Section 2.7.35 IF

Performs conditional processing in batch programs.

Section 2.7.36 SHIFT

Shifts the position of replaceable parameters in batch files.

Section 2.7.37 FOR

Runs a specified command for each file in a set of files.

2.6.10. Switching directories

Section 2.7.38 PUSHD

Saves the current directory then changes it.

Section 2.7.39 POPD

Restores the previous value of the current directory saved by PUSHD.

2.6.11. Copy commands

Section 2.7.40 COPY

Copies one or more files to another location.

Section 2.7.41 XCOPY

Copies files and directory trees.

Section 2.7.42 ROBOCOPY

Advanced utility to copy files and directory trees

2.6.12. Other commands

Section 2.7.43 TREE

Graphically displays the directory structure of a drive or path.

Section 2.7.44 SUBST

Associates a path with a drive letter.

Section 2.7.45 VER

Displays the Windows version.

Section 2.7.46 DOSKEY

Edits command lines, recalls Windows commands, and creates macros.