|
jh1688
中级用户
  
积分 248
发帖 126
注册 2008-5-30
状态 离线
|
『楼 主』:
如何屏蔽杂乱的信息??
使用 LLM 解释/回答一下
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
这段P是我用来全盘查找备份文件自动恢复用的,在查找过程中找到机器中的最后一个硬盘后会出现一大堆杂乱的信息,怎么屏蔽这些信息??
在论坛中找了好久,试了N多方法,没有解决,请各位达人帮我一下,谢谢!!
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!
|
|
2008-7-16 05:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
是什么杂乱的信息呢?
What messy information is that?
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2008-7-16 09:14 |
|
|
jh1688
中级用户
  
积分 248
发帖 126
注册 2008-5-30
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
找不到文件,反馈回来的信息。
我的机器是双硬盘,双光驱,最后一个硬盘符是K,纯DOS下,虚拟盘是L,两个光驱分别是M和N盘,查找文件找不到时,返回的信息很长一段,虽然只是一闪而过,但我觉得很不好,屏幕不干净,想请达人帮我一下,看能否屏蔽掉这些信息……
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...
|
|
2008-7-16 17:04 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
将dir %%i:\*.gho /b /s /a
换成:dir /a-d/b/s %%i:\*.gho 2>nul
dir /a-d/b/s %%i:\*.gho 2>nul
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2008-7-16 18:03 |
|
|
jh1688
中级用户
  
积分 248
发帖 126
注册 2008-5-30
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
先谢谢!!!!!!!!!!!!!!!!!!!!!!
试过以后才知道,找不到文件之类的信息没有了,但找不到驱动器或驱动器路径不对(中文意思,我E文太烂,猜的)之类的信息仍然出现,这些信息又如何屏蔽呢?????
Last edited by jh1688 on 2008-7-18 at 01:42 AM ]
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 ]
|
|
2008-7-16 22:10 |
|
|
AlexZhang
系统支持
            
积分 995
发帖 427
注册 2007-2-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
你试试grep找到你想要的信息
You try grep to find the information you want
|
|
2008-7-21 00:19 |
|
|
tophu0041463
初级用户
  少帅
积分 42
发帖 24
注册 2009-12-17 来自 深圳
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
遇到类似问题,来学习下
When encountering similar problems, come and learn
|
|
2009-12-24 23:40 |
|
|
zhclvip
初级用户
 
积分 138
发帖 50
注册 2007-1-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
DOS命令代码会有输出,它包括正常的输出和错误代码
举例来说:
pause >nul
默认屏闭的是1号输出,即按任意键继续……
即可以写成 pause 1>nul
以dir为例,它有两个输出,一个是正常的列表1,一个出错代码2,所以你可以用下面的代码取得这两者
dir *.jpg 1>list.txt 2>err.txt
当没有JPG格式文件时就从2号通道输出到err.txt文件
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
|
|
2009-12-30 20:15 |
|