The function of the pipe character (|) is to output the process before the symbol as input to the process after the symbol.
For example:
There are two commands, "dir/s/b/a" and "find". txt ", the first shows all the files and folders in the current folder, and the second is to look for a string containing the character". txt ".
Two commands you can "find all files, folders in the current folder that contain. txt" by using a pipe character (|) connection.
Copy Code code as follows:
Some cases require a pipe character (|):
1. Place the current date on the Clipboard.
Copy Code code as follows:
2. Find a specific string or file or folder
This feature is perfect to achieve, need to be familiar with mastering findstr and for, and the pipe character (|) is indispensable when findstr and for are used at the same time.
Copy Code code as follows:
CLIP
Describe:
Redirects the output of the command-line tool to the Windows Clipboard. This text output can be pasted
to another program.
Parameter list:
/? Displays this help message.
Example:
DIR | CLIP a copy of the current directory list into the Windows clipboard.
CLIP < README. TXT places a copy of Readme.txt into the Windows clipboard.
The above mentioned is the entire content of this article, I hope to be able to master batch processing commands to help.