|
xiaofking
初级用户
 
积分 72
发帖 31
注册 2007-6-9
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
我直接使用find查找txt文本是可以的,但是用gdisk | find就不行了
find "A01" 1.txt成功
gdisk | find "A01"失败
能不能在进入纯DOS命令之前,先用config.sys让gdisk.exe先输出一个txt文件在A盘呢?
I can directly use find to find the txt text, but it doesn't work with gdisk | find.
Finding "A01" in 1.txt is successful.
Failing when using gdisk | find "A01".
Can I use config.sys to make gdisk.exe output a txt file on drive A before entering the pure DOS command?
|
|
2008-1-12 01:58 |
|
|
xiaofking
初级用户
 
积分 72
发帖 31
注册 2007-6-9
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
gdisk一定要输出在画面上或A盘中的,我又试了一下 | 符号应该是不能用的吧?
连这样的语句都会出错的echo aaa | find “aaa”,绝对不关find或其他问题,我用了N个第三方查找工具了,全都一样,只要有 | 就不行,如果不用 | 又必须输出txt文件来查找。。。
gdisk must be output on the screen or in drive A. I tried again. The | symbol probably can't be used? Even a statement like echo aaa | find "aaa" will go wrong. It has nothing to do with find or other issues. I've used N third-party search tools, all the same. As long as there's a |, it doesn't work. If you don't use |, you have to output to a txt file to search...
|
|
2008-1-12 02:07 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
应该可以用 |
gdisk | lmod /L2 | find /i "A01"
if errorlevel 1 goto end
:go1
..................
:end
不知道后面的find可否省略!因为在 lmod 里的一个参数可以在 可以直接写上要显示的A01 如: lmod /L2 (因没用过 所以不确定) 然后判断返回值 不知行得同不?
Last edited by terse on 2008-1-12 at 02:43 AM ]
It should be possible to use |
gdisk | lmod /L2 | find /i "A01"
if errorlevel 1 goto end
:go1
..................
:end
I don't know if the subsequent find can be omitted! Because there is a parameter in lmod that can directly write the A01 to be displayed in , such as: lmod /L2 (since I haven't used it, so I'm not sure) Then judge the return value, I don't know if it can work the same.
Last edited by terse on 2008-1-12 at 02:43 AM ]
|

简单!简单!再简单! |
|
2008-1-12 02:22 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
出错原因是当前盘符不可写。解决此问题就行了。
The reason for the error is that the current drive letter is not writable. Just solve this problem.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-1-12 10:22 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
AUTOEXEC.BAT和CONFIG.SYS的内容看一下 估计在是哪个环节出问题
下个 lmod 运行下面的试一下 也可以变更一下 把A01换成别的
@echo off
gdisk | lmod /L2
if errorlevel 1 goto end
:go1
echo ok
goto exit
:end
echo no
Last edited by terse on 2008-1-12 at 03:47 PM ]
Please provide the Chinese content that needs to be translated. As the current content has both Chinese and English parts, please clarify which specific Chinese part needs translation. If it's the Chinese sentence "AUTOEXEC.BAT和CONFIG.SYS的内容看一下 估计在是哪个环节出问题", the translation is "Take a look at the contents of AUTOEXEC.BAT and CONFIG.SYS. Estimate which link is having a problem". The rest of the code part remains as is. So the full translated text would be:
Take a look at the contents of AUTOEXEC.BAT and CONFIG.SYS. Estimate which link is having a problem
Next, run lmod with the following test: you can also change it, replace A01 with something else
@echo off
gdisk | lmod /L2
if errorlevel 1 goto end
:go1
echo ok
goto exit
:end
echo no
Last edited by terse on 2008-1-12 at 03:47 PM ]
|

简单!简单!再简单! |
|
2008-1-12 15:02 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
Originally posted by terse at 2008-1-12 15:02:
AUTOEXEC.BAT和CONFIG.SYS的内容看一下 估计在是哪个环节出问题
下个 lmod 运行下面的试一下 也可以变更一下 把A01换成别的
@echo off
gdisk | lmod /L2 ...
当前盘不可写的话,能用吗?
Originally posted by terse at 2008-1-12 15:02:
Take a look at the contents of AUTOEXEC.BAT and CONFIG.SYS. It is estimated that there is a problem in which link.
Next, run lmod with the following and try it. You can also change it. Replace A01 with something else.
@echo off
gdisk | lmod /L2 ...
Can it be used if the current drive is not writable?
|

Windows 一键还原
http://www.yjhy.com |
|
2008-1-12 16:53 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
Originally posted by lianjiang2004 at 2008-1-12 16:53:
当前盘不可写的话,能用吗?
叫LZ把AUTOEXEC.BAT和CONFIG.SYS的内容发来看一下,当前盘不可写是一个方面!但也有可能别的原因!LZ是用什么启动到DOS的呢?
Originally posted by lianjiang2004 at 2008-1-12 16:53:
If the current drive is not writable, can it be used?
Ask the LZ to send the contents of AUTOEXEC.BAT and CONFIG.SYS for a look. The fact that the current drive is not writable is one aspect! But there may be other reasons! How does the LZ boot to DOS?
|

简单!简单!再简单! |
|
2008-1-12 19:57 |
|
|
dooomer
初级用户
 
积分 109
发帖 52
注册 2006-1-3
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
看来楼主主要的困难是没有办法生成txt临时文件。
不是有叫做内存盘的东东吗?用内存虚拟一个可读写磁盘出来,然后把输出重定向到txt文件再做处理。
It seems that the main difficulty of the original poster is that there is no way to generate a txt temporary file. Isn't there something called a RAM disk? Use memory to virtualize a readable and writable disk, and then redirect the output to a txt file for processing.
|
|
2008-1-12 20:17 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
Originally posted by terse at 2008-1-12 19:57:
叫LZ把AUTOEXEC.BAT和CONFIG.SYS的内容发来看一下,当前盘不可写是一个方面!但也有可能别的原因!LZ是用什么启动到DOS的呢?
在我的论坛,楼主已经说了,就是因为不可写,所以才要不生成中间文件的,否则,用中间文件岂不是要简单的多?
只是楼主自己问题交待不清,搞得各位不知所措。呵呵。
Originally posted by terse at 2008-1-12 19:57:
Ask the LZ to post the contents of AUTOEXEC.BAT and CONFIG.SYS for a look. The unwriteable current drive is one aspect! But there may be other reasons! What did the LZ use to boot into DOS?
On my forum, the original poster has said that it is because it is unwriteable, so it is necessary not to generate intermediate files. Otherwise, using intermediate files would be much simpler?
It's just that the original poster didn't clearly state the problem, causing everyone to be at a loss. Hehe.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-1-12 20:26 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
不可写,这是造成无法实现各位的意图的关键原因。不可写的话,什么方案都是白搭。呵呵。
Unwritable, this is the key reason that prevents achieving everyone's intentions. If it's unwritable, any solution is in vain. Hehe.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-1-12 20:29 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
我以为即使当前盘不可写 我在20楼的应该可行吧 只是没有测试环境 所以不知道可行否!
I thought that even if the current disk is not writable, the one at the 20th floor should be okay. It's just that there's no test environment, so I don't know if it works!
|

简单!简单!再简单! |
|
2008-1-13 00:52 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
Originally posted by terse at 2008-1-13 00:52:
我以为即使当前盘不可写 我在20楼的应该可行吧 只是没有测试环境 所以不知道可行否!
个人以为,不管哪种方案,都要求当前盘可写。
而这也是问题的关键。
Originally posted by terse at 2008-1-13 00:52:
I thought that even if the current drive is not writable, my method at floor 20 should be feasible, but there is no test environment, so I don't know if it is feasible!
Personally, I think that for either solution, the current drive needs to be writable.
And this is also the key to the problem.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-1-13 07:52 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2008-1-13 19:49 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
|
2008-1-13 23:14 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
gdisk是ghost 2k里边带的一个分区工具
gdisk无参数运行是默认显示当前机算机第一块磁盘的分区情况
gdisk is a partition tool included in Ghost 2k. When gdisk runs without parameters, it defaults to displaying the partition situation of the first disk in the current computer.
|
|
2008-1-14 01:06 |
|