Useful Command Modifiers
From CastleCopsWiki
Contents |
[edit] Type
Display the contents of a file on screen
Example:
type my_file.txt
Arguments:
Full path to the file
Switches:
None
[edit] |More
Limit the output of commands to one screenful at a time (cf /p switch for the Dir command)
Example:
type my_file.txt |more
(Display the contents of my_file.txt one screen at a time)
Note - The pipe symbol ('|') is produced by pressing Shift + \)
[edit] > (Redirect)
Redirect the output from a command to a file
Example:
dir c:\windows >dir.txt
(Create a file named dir.txt, which contains the result of the dir command)
[edit] Exit
Close the Command Line window and return to Windows.
Example:
exit
