|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
|
2008-12-12 22:17 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
|
2008-12-12 22:54 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
『第 438 楼』:
使用 LLM 解释/回答一下
太好了,真是高手,我找了好久,就是这个。
请您将 帖子标题改改,方便其他搜索,可好?
Great! Really a master. I've been looking for a long time, it's just this one. Could you please change the post title to make it easier for others to search?
|
|
2008-12-13 11:01 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
|
2008-12-13 18:10 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 440 楼』:
使用 LLM 解释/回答一下
Originally posted by goli2008 at 2008-12-13 11:01:
太好了,真是高手,我找了好久,就是这个。
请您将 帖子标题改改,方便其他搜索,可好?
本帖子的标题吗? 我一般会在更新的时间和软件名字写在上面
Originally posted by goli2008 at 2008-12-13 11:01:
Great, really an expert. I've been looking for a long time, just this one.
Could you please change the post title to make it easier for others to search?
Is it the title of this post? I usually write the update time and software name on it
|
|
2008-12-13 22:33 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
|
2008-12-15 14:29 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
『第 442 楼』:
使用 LLM 解释/回答一下
diskrw 0 0 ?? /r 1.exe
关于写入文件的问题,扇区参数规定太死了,非得与文件的扇区一致才能写,
问题是文件的扇区数有时不好计算(或者说不确定),能否修改或取消此参数,或设为0时,默认按文件长度写入(自动计算扇区)?
等。。。。。。。。。。。。。。。
diskrw 0 0 ?? /r 1.exe
Regarding the issue of writing files, the sector parameters are too rigid. It has to be exactly consistent with the file's sectors to write. The problem is that the number of sectors in the file is sometimes difficult to calculate (or is uncertain). Can this parameter be modified or canceled, or when set to 0, can it default to writing according to the file length (automatically calculate sectors)?
Wait...
|
|
2008-12-18 09:54 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
『第 443 楼』:
使用 LLM 解释/回答一下
dspt 1 0 0x3 /e /hex:010203 /y
这个命令清空扇区所有数据!!!!!!!
dspt 1 0 0x3 /e /hex:010203 /y
This command clears all data in the sector!!!!!
|
|
2008-12-18 13:57 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 444 楼』:
使用 LLM 解释/回答一下
Originally posted by goli2008 at 2008-12-18 13:57:
dspt 1 0 0x3 /e /hex:010203 /y
这个命令清空扇区所有数据!!!!!!!
在dspt中的 /e
DSPT
/E: Clear Disk Sector Info
这当然是清空扇区内容,你说的没有问题,这有什么奇怪的。
Originally posted by goli2008 at 2008-12-18 13:57:
dspt 1 0 0x3 /e /hex:010203 /y
This command clears all data in the sector!!!!!
In DSPT, the /e
DSPT
/E: Clear Disk Sector Info
This is of course to clear the sector content, what you said is correct, what's so strange about this.
附件
1: aaa.GIF (2008-12-19 21:50, 14.54 KiB, 下载附件所需积分 1 点
)
|
|
2008-12-19 21:50 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 445 楼』:
使用 LLM 解释/回答一下
Originally posted by goli2008 at 2008-12-18 09:54:
diskrw 0 0 ?? /r 1.exe
关于写入文件的问题,扇区参数规定太死了,非得与文件的扇区一致才能写,
问题是文件的扇区数有时不好计算(或者说不确定) ...
在dos下可以写入扇区的部分内容,并不要求写入扇区的全部
Originally posted by goli2008 at 2008-12-18 09:54:
diskrw 0 0 ?? /r 1.exe
Regarding the issue of writing to a file, the sector parameters are too rigid; you have to be exactly in sync with the file's sectors to write. The problem is that the number of sectors in the file is sometimes hard to calculate (or uncertain)...
In DOS, you can write part of a sector, and it doesn't require writing the entire sector
|
|
2008-12-19 21:52 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
『第 446 楼』:
使用 LLM 解释/回答一下
Originally posted by 19951001 at 2008-12-19 21:50:
在dspt中的 /e
DSPT
/E: Clear Disk Sector Info
这当然是清空扇区内容,你说的没有问题,这有什么奇怪的。
这个没错,
可是我用的是dspt与diskrw两者的合成版,
而diskrw的/E参数是修改的意思:
2008.9.27
Win32 版本 diskrw 更新
http://upload.cn-dos.net/img/798.rar
本次修改的内容:
1 命令调整,原来的 /E 命令(删除扇区内容)更改为 /F 命令 (扇区内容充填)
原来的 /E 命令是使用 0 充填指定扇区
现在的 /F 命令可指定任何值对扇区进行充填,如果不输入 Value 值则和原版本的 /E 命令执行相同的功能
DISKRW
/F: Fill Disk Sector Info with Value
Value: an Integer (0..255), default is 0
2 命令调整,将修改扇区的命令有原来的 /M (Modify) 调整为 /E (Edit) 更为直观
DISKRW
SectorNo: Absolute/Relative Sector No. of Disk
Offset: The Offset in Specified Sector (0..511)
/E: Edit Disk Sector Info
/HEX: Hex Style
Value: Hex Digital String (No more than 32 characters)
所以,能否统一参数?
Originally posted by 19951001 at 2008-12-19 21:50:
In dspt, the /e
DSPT
/E: Clear Disk Sector Info
This is of course to clear the sector content, what you said is correct, what's so strange about this.
This is correct,
But I am using a combined version of dspt and diskrw,
And the /E parameter of diskrw is for modification:
2008.9.27
Win32 version diskrw updated
http://upload.cn-dos.net/img/798.rar
The content of this modification:
1 Command adjustment, the original /E command (delete sector content) is changed to /F command (sector content filling)
The original /E command fills the specified sector with 0
The current /F command can fill the sector with any value. If no Value is entered, it performs the same function as the original version's /E command
DISKRW
/F: Fill Disk Sector Info with Value
Value: an Integer (0..255), default is 0
2 Command adjustment, change the command to modify the sector from the original /M (Modify) to /E (Edit) for more intuitive
DISKRW
SectorNo: Absolute/Relative Sector No. of Disk
Offset: The Offset in Specified Sector (0..511)
/E: Edit Disk Sector Info
/HEX: Hex Style
Value: Hex Digital String (No more than 32 characters)
So, can we unify the parameters?
|
|
2008-12-20 15:06 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
『第 447 楼』:
使用 LLM 解释/回答一下
另外,请看一下,
str 1.exe 0x03 0 /e /hex:0011
写00时会出错,后来我用dspt的E参数写入时,才发现清空扇区的。
In addition, please take a look,
str 1.exe 0x03 0 /e /hex:0011
An error occurs when writing 00. Later, when I used the E parameter of dspt to write, I found out that it was to clear the sector.
|
|
2008-12-20 15:08 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
|
2008-12-20 15:12 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 449 楼』:
使用 LLM 解释/回答一下
Originally posted by goli2008 at 2008-12-20 15:08:
另外,请看一下,
str 1.exe 0x03 0 /e /hex:0011
写00时会出错,后来我用dspt的E参数写入时,才发现清空扇区的。
str已经更新了
Originally posted by goli2008 at 2008-12-20 15:08:
Also, please take a look,
str 1.exe 0x03 0 /e /hex:0011
An error occurs when writing 00. Later, when I used the E parameter of dspt to write, I才发现 to clear the sector.
str has been updated
|
|
2008-12-20 15:13 |
|
|
goli2008
中级用户
  
积分 252
发帖 97
注册 2006-9-17
状态 离线
|
『第 450 楼』:
使用 LLM 解释/回答一下
Originally posted by 19951001 at 2008-12-20 15:13:
str已经更新了
试用正确,非常感谢!!!!
The test is correct, thank you very much!!!
|
|
2008-12-20 15:26 |
|