![]() |
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-15 11:59 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » How to block messy information? |
| Printable Version 1,797 / 7 |
| Floor1 jh1688 | Posted 2008-07-16 05:00 |
| 中级用户 Posts 126 Credits 248 | |
|
set drv=C D E F G H I J K L M N O P Q R S T U V W X Y Z
for %%i in (%drv%) do dir %%i:\*.gho /b /s /a >>temp.txt find /i ".gho" temp.txt >nul type temp.txt | lmod set lastdrv=[] > temp.bat call temp.bat >nul if not exist %lastdrv% goto hfqt_2 Ghost -clone,mode=pload,src=%lastdrv%:1,dst=1:1 -sure -fx This P is what I use to find backup files on the entire disk for automatic recovery. When finding the last hard drive in the machine during the search, a lot of messy information appears. How to block these messages?? I have searched the forum for a long time and tried many methods, but it hasn't been solved. Please help me, dear experts, thank you! |
|
| Floor2 Climbing | Posted 2008-07-16 09:14 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
What messy information is that?
|
|
| Floor3 jh1688 | Posted 2008-07-16 17:04 |
| 中级用户 Posts 126 Credits 248 | |
|
Can't find the file, the information fed back.
My machine has two hard drives and two optical drives. The last hard drive letter is K. In pure DOS, the virtual disk is L. The two optical drives are drives M and N respectively. When the file is not found during the search, the returned information is a long section. Although it only flashes by, I think it's not good. The screen is not clean. I want to ask the experts for help. See if these messages can be shielded... |
|
| Floor4 Climbing | Posted 2008-07-16 18:03 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
dir /a-d/b/s %%i:\*.gho 2>nul
|
|
| Floor5 jh1688 | Posted 2008-07-16 22:10 |
| 中级用户 Posts 126 Credits 248 | |
|
First, thank you!!!!!!!!!!!!!!!!!!!!!!
After trying, I found that the information like "file not found" is gone, but the information like "drive not found or drive path is incorrect" (this is the Chinese meaning, my English is too bad, just guessing) still appears. How can these information be blocked??? [ Last edited by jh1688 on 2008-7-18 at 01:42 AM ] |
|
| Floor6 AlexZhang | Posted 2008-07-21 00:19 |
| 系统支持 Posts 438 Credits 1,023 | |
|
You try grep to find the information you want
|
|
| Floor7 tophu0041463 | Posted 2009-12-24 23:40 |
| 初级用户 Posts 24 Credits 42 From 深圳 | |
|
When encountering similar problems, come and learn
|
|
| Floor8 zhclvip | Posted 2009-12-30 20:15 |
| 初级用户 Posts 50 Credits 138 | |
|
DOS command codes can have outputs, which include normal outputs and error codes.
For example: pause >nul The default is to block output channel 1, that is, "Press any key to continue..." That is, it can be written as pause 1>nul Take dir as an example. It has two outputs, one is the normal list 1, and one is the error code 2. So you can use the following code to obtain both. dir *.jpg 1>list.txt 2>err.txt When there are no JPG format files, it is output from channel 2 to the err.txt file |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |