![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 10:56 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Question about “redirection”, thanks |
| Printable Version 797 / 4 |
| Floor1 iamhongyi | Posted 2010-05-01 19:25 |
| 新手上路 Posts 2 Credits 2 | |
|
How do I redirect the result to a text file, but not have it echoed in the window? Thanks
For example: redirect the result of the dir command to 1.txt, but don't display it in the window |
|
| Floor2 q8249014 | Posted 2010-05-01 19:27 |
| 初级用户 Posts 45 Credits 175 | |
| Floor3 iamhongyi | Posted 2010-05-01 19:33 |
| 新手上路 Posts 2 Credits 2 | |
|
Thanks
|
|
| Floor4 luuk | Posted 2010-05-01 19:37 |
| 初级用户 Posts 46 Credits 69 From 山东 | |
|
Just add @ at the beginning of the command line.
|
|
| Floor5 Hanyeguxing | Posted 2010-05-01 19:43 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
|
Command redirection operators (Redirection Operators) You can use redirection operators to redirect command input and output
> writes command output to a file or device (for example, a printer), instead of writing it in the command prompt window. < reads command input from a file instead of from the keyboard. >> appends command output to the end of a file without deleting the information in the file. >& writes the output from one handle to the input of another handle. <& reads input from one handle and writes it to the output of another handle. | reads output from one command and writes it to the input of another command. Also called a pipe. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |