|
dopodoelf
新手上路

积分 6
发帖 3
注册 2007-3-17
状态 离线
|
|
2007-3-17 03:24 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 107 楼』:
TOdisk==〈增强版〉==初步出炉!
使用 LLM 解释/回答一下
加入了如下功能:
1
备份和恢复分区表链(支持单硬盘和全部硬盘)
2
压缩和解压文件(只支持单文件)
3
打印扇区和偏移字节(支持硬盘和文件〈包括用本程序作的的压缩文件〉)
4
改写扇区和偏移字节(支持硬盘)
比较扇区和字节功能(支持硬盘和文件〈包括压缩〉)很快加入。
**********
参数如下:
*********
1
备份和恢复分区表链(支持单硬盘和全部硬盘)
/spt Save Partition Table
/rpt restore Partition Table
TOdisk /spt /all file 保存全部硬盘的分区表链
TOdisk /spt 2 file 保存第二硬盘的分区表链
TOdisk /rpt /all file 恢复全部硬盘的分区表链
TOdisk /rpt 2 file 恢复第二硬盘的分区表链
2
/zip
/unzip
TOdisk /zip infile outfile 6 把infile压缩成outfile,压缩强度6(1-9)
TOdisk /unzip infile outfile 把 infile 解压为outfile
3
打印扇区和偏移字节(支持硬盘和文件〈包括用本程序作的的压缩文件〉)
/pds Print Drive Sector
/pfs Print File Sector
/pdb Print Drive Byte
/pfb Print File Byte
TOdisk /pds 2 123 10 打印第二硬盘的第123扇区 总共10扇区,不暂停(这样可用重定向符号>存为文件)
TOdisk /pfs /pause file 123 10 打印文件(支持压缩)第123扇区 总共10扇区,满屏暂停
TOdisk /pdb /pause 2 123 456 10 打印第二硬盘的第123扇区 便移456处 总共10扇区,满屏暂停
TOdisk /pfb /pause file 123 456 10 打印文件(支持压缩)第123扇区 便移456处 总共10扇区,满屏暂停
4
改写扇区和偏移字节(支持硬盘)
/wfc Write (Drive Byte) From Commandline
/wff Write (Drive Byte) From File
TOdisk /wfc 2 123 456 AD EF CF ...
从命令行把数值写入第二硬盘 扇区123 便移456处 共三个字节。。。
TOdisk /wff 2 123 456 7 file 456 123
把文件扇区456 便移123处 写入第二硬盘 扇区123 便移456处 共7个字节。。。
欢迎试玩测试。。。。
由于是初版,参数输入要确保正确, 最好找个无用的硬盘。
不过,我已作了基本测试,基本可以通过,目前没问题。。。
Last edited by GOTOmsdos on 2007-4-17 at 07:08 AM ]
Added the following functions:
1
Backup and restore partition table chains (support single hard drive and all hard drives)
2
Compress and decompress files (only support single file)
3
Print sectors and offset bytes (support hard drives and files (including compressed files made by this program))
4
Rewrite sectors and offset bytes (support hard drives)
The function of comparing sectors and bytes (support hard drives and files (including compressed)) will be added soon.
**********
Parameters are as follows:
*********
1
Backup and restore partition table chains (support single hard drive and all hard drives)
/spt Save Partition Table
/rpt restore Partition Table
TOdisk /spt /all file Save partition table chains of all hard drives
TOdisk /spt 2 file Save partition table chains of the second hard drive
TOdisk /rpt /all file Restore partition table chains of all hard drives
TOdisk /rpt 2 file Restore partition table chains of the second hard drive
2
/zip
/unzip
TOdisk /zip infile outfile 6 Compress infile into outfile, compression strength 6 (1-9)
TOdisk /unzip infile outfile Unzip infile into outfile
3
Print sectors and offset bytes (support hard drives and files (including compressed files made by this program))
/pds Print Drive Sector
/pfs Print File Sector
/pdb Print Drive Byte
/pfb Print File Byte
TOdisk /pds 2 123 10 Print the 123rd sector of the second hard drive, total 10 sectors, no pause (so that it can be saved as a file using the redirection symbol >)
TOdisk /pfs /pause file 123 10 Print the 123rd sector of the file (support compressed), total 10 sectors, pause when full screen
TOdisk /pdb /pause 2 123 456 10 Print the 123rd sector of the second hard drive, offset 456, total 10 sectors, pause when full screen
TOdisk /pfb /pause file 123 456 10 Print the 123rd sector of the file (support compressed), offset 456, total 10 sectors, pause when full screen
4
Rewrite sectors and offset bytes (support hard drives)
/wfc Write (Drive Byte) From Commandline
/wff Write (Drive Byte) From File
TOdisk /wfc 2 123 456 AD EF CF ...
Write values from the command line to the second hard drive, sector 123, offset 456, total three bytes...
TOdisk /wff 2 123 456 7 file 456 123
Write the sector 456, offset 123 of the file to the second hard drive, sector 123, offset 456, total 7 bytes...
Welcome to try and test...
Since it is the initial version, make sure the parameters are entered correctly, it is best to find a useless hard drive.
However, I have made basic tests, basically it can pass, no problem at present...
Last edited by GOTOmsdos on 2007-4-17 at 07:08 AM ]
|
|
2007-3-17 14:06 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 108 楼』:
使用 LLM 解释/回答一下
补全了剩下的功能
这样,基本可替代超越了DEBUG的扇区功能...
**********
调整如下:
*********
1
备份和恢复分区表链(支持单硬盘和全部硬盘)
-SALL Save Partition Table (DBR included)
-RALL Restore Partition Table (DBR included)
此功能能使你误操作分区软件并写盘后使全部分区恢复如初(包括分区的DBR)
TOdisk -SALL file
保存全部硬盘的分区表链
TOdisk -SALL 2 file
保存第二硬盘的分区表链
TOdisk -RALL file
恢复全部硬盘的分区表链
TOdisk -RALL 2 file
恢复第二硬盘的分区表链
2
压缩解压缩
-ZIP
-UNZIP
TOdisk -ZIP infile outfile 6
把infile压缩成outfile,压缩强度6(1-9)
TOdisk -UNZIP infile outfile
把 infile 解压为outfile
3
打印扇区和偏移字节(支持硬盘和文件〈包括用本程序生成的压缩文件〉)
-PDS Print Drive Sector
-PFS Print Print File Sector
-PDB Print Drive Byte
-PFB Print File Byte
TOdisk -PDS 2 123 10
打印第二硬盘的第123扇区 总共10扇区,不暂停(这样可用重定向符号>存为文件)
TOdisk -PFS -PAUSE file 123 10
打印文件(支持压缩)第123扇区 总共10扇区,满屏暂停
TOdisk -PDB 2 123 456 10
打印第二硬盘的第123扇区 偏移456处 总共10字节,不暂停
TOdisk -PFB -PAUSE file 123 456 10
打印文件(支持压缩)第123扇区偏移456处 总共10字节,满屏暂停
4
改写扇区和偏移字节(支持硬盘)
-DWD from Drive1 Write to Drive2
-CWD from CommandLine Write to Drive
-FWD from File Write to Drive
-CFD from CommandLine Fill Drive
-DWF from Drive Write to File
TOdisk -DWD 1 123 456 2 456 123 7
把硬盘1扇区123偏移456处写7个字节到硬盘2扇区456偏移123处
TOdisk -CWD 2 123 456 AD EF CF
从命令行把数值 AD EF CF 写入第二硬盘 扇区123 偏移456处 共3个字节。。。
TOdisk -FWD file 456 123 2 123 456 7
把文件 扇区456 偏移123处 写入第二硬盘 扇区123 偏移456处 共7个字节
TOdisk -CFD 2 123 456 7 AD EF CF
把命令行把数值循环填入第二硬盘 扇区123 偏移456处 共7个字节。。。
TOdisk -DWF 2 123 456 file 4567 -ZIP 9
把从硬盘2 的起始扇区123的偏移456处 的4567字节写到文件,并压缩,级别9
5
比较磁盘,文件(包括本程序生成的压缩文件)
-DCD Drive Compare Drive
-DCF Drive Compare File
-FCF File Compare File
TOdisk -DCD 1 234 12 2 345 13 789
比较硬盘1扇区234偏移12 和 硬盘2扇区345偏移13 总共789字节
TOdisk -DCF -PAUSE 1 234 12 file 345 13 789
比较硬盘1扇区234偏移12 和 文件 扇区345偏移13 总共789字节,满屏暂停
TOdisk -FCF file1 234 12 file2 345 13 789
比较文件1 扇区234偏移12 和 文件2 扇区345偏移13 总共789字节
****************************************
以下是保存恢复MBR,DBR,FAT,CMOS等:
保存单个分区表
TOdisk -SPT C: PT
保存DBR
TODISK -SDBR 1:3 DBR
保存FAT
TOdisk -SFAT 2:1 FAT
恢复
(恢复时不需要输入分区号,只要文件名就行)
TOdisk -R FILE
比较:
TOdisk -C FILE
(比较时,不需要输入分区号,只要文件名就行)
保存CMOS
TOdisk -SCMOS FILE
恢复CMOS
TOdisk -RCMOS FILE
猜出CMOS密码
TOdisk -CMOSKEY
并且显示功能突破DEBUG的64KB限制,包括文件大小限制和显示的字节限制
可高达4G
欢迎试玩测试。。。。
我已作了基本测试,通过,目前没问题。。。
Last edited by GOTOmsdos on 2007-4-17 at 07:08 AM ]
The remaining functions are completed.
In this way, the sector functions that can basically replace and surpass DEBUG are achieved...
**********
Adjustments are as follows:
*********
1
Backup and restore partition table chains (support single hard disk and all hard disks)
-SALL Save Partition Table (DBR included)
-RALL Restore Partition Table (DBR included)
This function can make all partitions return to their original state (including the DBR of partitions) after misoperation of partition software and writing to the disk.
TOdisk -SALL file
Save the partition table chain of all hard disks
TOdisk -SALL 2 file
Save the partition table chain of the second hard disk
TOdisk -RALL file
Restore the partition table chain of all hard disks
TOdisk -RALL 2 file
Restore the partition table chain of the second hard disk
2
Compression and decompression
-ZIP
-UNZIP
TOdisk -ZIP infile outfile 6
Compress infile into outfile with compression strength 6 (1-9)
TOdisk -UNZIP infile outfile
Decompress infile to outfile
3
Print sectors and offset bytes (support hard disks and files <including compressed files generated by this program>)
-PDS Print Drive Sector
-PFS Print File Sector
-PDB Print Drive Byte
-PFB Print File Byte
TOdisk -PDS 2 123 10
Print the 123rd sector of the second hard disk, total 10 sectors, without pause (so it can be saved as a file using the redirection symbol >)
TOdisk -PFS -PAUSE file 123 10
Print the 123rd sector of the file (supporting compression), total 10 sectors, pause when full screen
TOdisk -PDB 2 123 456 10
Print the 123rd sector of the second hard disk, offset at 456, total 10 bytes, without pause
TOdisk -PFB -PAUSE file 123 456 10
Print the 123rd sector offset at 456 of the file (supporting compression), total 10 bytes, pause when full screen
4
Rewrite sectors and offset bytes (support hard disks)
-DWD from Drive1 Write to Drive2
-CWD from Command Line Write to Drive
-FWD from File Write to Drive
-CFD from Command Line Fill Drive
-DWF from Drive Write to File
TOdisk -DWD 1 123 456 2 456 123 7
Write 7 bytes from sector 123, offset 456 of hard disk 1 to sector 456, offset 123 of hard disk 2
TOdisk -CWD 2 123 456 AD EF CF
Write the values AD, EF, CF from the command line to sector 123, offset 456 of the second hard disk, total 3 bytes...
TOdisk -FWD file 456 123 2 123 456 7
Write 7 bytes from sector 456, offset 123 of the file to sector 123, offset 456 of the second hard disk
TOdisk -CFD 2 123 456 7 AD EF CF
Write the values from the command line to sector 123, offset 456 of the second hard disk in a loop, total 7 bytes...
TOdisk -DWF 2 123 456 file 4567 -ZIP 9
Write 4567 bytes from sector 123, offset 456 of hard disk 2 to the file, and compress it with level 9
5
Compare disks and files (including compressed files generated by this program)
-DCD Drive Compare Drive
-DCF Drive Compare File
-FCF File Compare File
TOdisk -DCD 1 234 12 2 345 13 789
Compare sector 234, offset 12 of hard disk 1 and sector 345, offset 13 of hard disk 2, total 789 bytes
TOdisk -DCF -PAUSE 1 234 12 file 345 13 789
Compare sector 234, offset 12 of hard disk 1 and sector 345, offset 13 of the file, total 789 bytes, pause when full screen
TOdisk -FCF file1 234 12 file2 345 13 789
Compare sector 234, offset 12 of file 1 and sector 345, offset 13 of file 2, total 789 bytes
****************************************
The following is to save and restore MBR, DBR, FAT, CMOS, etc.:
Save a single partition table
TOdisk -SPT C: PT
Save DBR
TODISK -SDBR 1:3 DBR
Save FAT
TOdisk -SFAT 2:1 FAT
Restore
(No need to input the partition number when restoring, just the file name)
TOdisk -R FILE
Compare:
TOdisk -C FILE
(No need to input the partition number when comparing, just the file name)
Save CMOS
TOdisk -SCMOS FILE
Restore CMOS
TOdisk -RCMOS FILE
Guess CMOS password
TOdisk -CMOSKEY
And the function breaks through the 64KB limit of DEBUG, including the file size limit and the byte limit of display, up to 4G
Welcome to play and test...
I have made basic tests and it passes, no problems currently...
Last edited by GOTOmsdos on 2007-4-17 at 07:08 AM ]
|
|
2007-3-26 08:26 |
|
|
wzsunlight
初级用户
 
积分 107
发帖 52
注册 2007-3-10
状态 离线
|
|
2007-3-28 18:43 |
|
|
download
初级用户
 
积分 199
发帖 101
注册 2007-3-13
状态 离线
|
『第 110 楼』:
使用 LLM 解释/回答一下
DEBUG只是个调试器,跟扇区没什么关系,
真不懂是你如何拿两样不同的东东来比较的……晕死。
DEBUG is just a debugger, not related to sectors at all.
I really don't understand how you can compare two different things... So frustrating.
|
|
2007-3-29 00:27 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 111 楼』:
使用 LLM 解释/回答一下
Originally posted by download at 2007-3-29 12:27 AM:
DEBUG只是个调试器,跟扇区没什么关系,
真不懂是你如何拿两样不同的东东来比较的……晕死。
DEBUG跟扇区没什么关系?
哈哈! 第一次听说!
DEBUG是个调试器不错,但它也有读写硬盘扇区的功能.你没有用过吗?
我的帖子说的很清楚,是 "DEBUG的扇区功能" , 不是DEBUG的调试功能.
懂DEBUG的都知道,DEBUG有读写磁盘扇区的命令(如: -L 读入, -W写盘,-D显示..-F填充字节等等..)
我真有点晕了
Originally posted by download at 2007-3-29 12:27 AM:
DEBUG is just a debugger, not related to sectors at all.
I really don't understand how you compare two different things... It's frustrating.
DEBUG has nothing to do with sectors?
Hahaha! The first time I've heard that!
DEBUG is indeed a debugger, but it also has the function of reading and writing hard disk sectors. Haven't you used it?
My post is very clear, it's about "the sector function of DEBUG", not the debugging function of DEBUG.
Anyone who understands DEBUG knows that DEBUG has commands to read and write disk sectors (such as: -L to read in, -W to write to disk, -D to display.. -F to fill bytes, etc..)
I'm really a bit confused
|
|
2007-3-29 05:52 |
|
|
download
初级用户
 
积分 199
发帖 101
注册 2007-3-13
状态 离线
|
『第 112 楼』:
使用 LLM 解释/回答一下
DEBUG调试器本身就可以随意写汇编和机器码,用A或E就行了,你爱调用什么就调用什么,IO还是INT13就不用我费话了吧
The DEBUG debugger itself can arbitrarily write assembly and machine code. Just use A or E. You can call whatever you like. There's no need for me to waste words about IO or INT13, right?
|
|
2007-3-29 11:29 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 113 楼』:
使用 LLM 解释/回答一下
楼上好象始终没有切入我帖子的主题,
不知道是什么思维? 学计算机的思维不该是这样吧?
1
不同的东西,如果在某些方面有共同的功能或特性,那么在这一方面也是有可比性的
比如,男人和女人在人这方面是同类的. 有可比性,比如,在体力,智力,情绪等等方面.
那么是不是女人就只能和男人有可比性而和别的东西一定没有可比性呢?
比如,在生育方面,男人不能生育,女人和男人怎么比?
在这方面,雌性动物都和女人有共同点,自然就有可比性. 比女人和雌性大猩猩的生育各方面的情况..
女人爱哭,怕小虫虫,情绪易脆弱,在这方面其实和小孩更有共同性..
2
楼主语录: 说 "DEBUG只是个调试工具" "跟扇区没关系'
我们看看,是不是这样的?
下面是DEBUG的全部命令:
assemble A 汇编
compare C range address 比较内存字节
dump D 查看内存字节
enter E address 改内存字节
fill F range list 填充内存字节
go G 执行汇编
hex H value1 value2 计算数值
input I port 输入端口
load L 将硬盘扇区装到内存
move M range address 移动内存字节
name N 打开文件
output O port byte 输出端口
proceed P 继续汇编码(好象是)
quit Q 退出
register R 设置寄存器值
search S range list 搜索字节
trace T 跟踪汇编码
unassemble U 反汇编
write W 写到硬盘扇区
好了,看一看,有哪些命令是用来调试的?
实际上,只有 A G P T R 五个(占DEBUG的小部分)是真正用来调试程序的,DEBUG的一半命令是用于内存,硬盘扇区和文件的工具, 也就是说,DEBUG也可给不会汇编的人用于读写内存,硬盘扇区和文件...
当然,用DEBUG比较烦琐,需要懂硬盘内部结构和DEBUG语法,我的TODISK加入的新功能,在读写硬盘扇区和文件方面,可以替代并超越DEBUG的以下9个命令
(重复一下:是在读写硬盘扇区和文件时,不包括仅仅查看内存)
DEBUG TODISK 为(类似)
C -DCD DCF FCF
D -PDS -PDB -PFS -PFB
E -CWD -FWD -DWD
F -CFD
L ... (以上含盖)
M ...(以上含盖)
N ...(以上含盖)
W ...(以上含盖)
实际上, 比较全面的说法 是:
DEBUG 是 调试器,反汇编器,内存编辑器,磁盘扇区读写器,文件读写器,硬件端口读写器和加减计算器..
Last edited by GOTOmsdos on 2008-5-5 at 01:46 PM ]
It seems that the person upstairs has never really gotten to the theme of my post. I don't know what kind of thinking that is? The thinking of someone studying computer shouldn't be like this, right?
1
Different things, if they have common functions or characteristics in some aspects, then they are comparable in that aspect.
For example, men and women are of the same kind in terms of being human. They are comparable, for example, in terms of physical strength, intelligence, emotions and so on.
Then, does it mean that women can only be comparable with men and have no comparability with other things at all?
For example, in terms of childbearing, men can't bear children. How can women compare with men?
In this aspect, female animals all have common points with women, so there is naturally comparability. For example, compare the childbearing situations of women and female gorillas in various aspects..
Women cry easily, are afraid of small insects, and are easily emotionally fragile. In this aspect, they actually have more commonalities with children..
2
The original poster's quotation: Saying "DEBUG is just a debugging tool" "has nothing to do with sectors"
Let's see, is that the case?
The following are all the commands of DEBUG:
assemble A Assemble
compare C range address Compare memory bytes
dump D View memory bytes
enter E address Modify memory bytes
fill F range list Fill memory bytes
go G Execute assembly
hex H value1 value2 Calculate values
input I port Input port
load L Load hard disk sectors into memory
move M range address Move memory bytes
name N Open file
output O port byte Output port
proceed P Continue assembly code (probably)
quit Q Quit
register R Set register values
search S range list Search bytes
trace T Trace assembly code
unassemble U Disassemble
write W Write to hard disk sectors
Well, take a look. Which commands are used for debugging?
Actually, only the five commands A G P T R (accounting for a small part of DEBUG) are really used for debugging programs. Half of the commands of DEBUG are tools for memory, hard disk sectors and files. That is to say, DEBUG can also be used by people who don't know assembly to read and write memory, hard disk sectors and files..
Of course, using DEBUG is relatively cumbersome. It requires knowing the internal structure of the hard disk and the DEBUG syntax. The new functions added by my TODISK can replace and surpass the following 9 commands of DEBUG in terms of reading and writing hard disk sectors and files
(Repeat: when reading and writing hard disk sectors and files, not including just viewing memory)
DEBUG TODISK is (similar)
C -DCD DCF FCF
D -PDS -PDB -PFS -PFB
E -CWD -FWD -DWD
F -CFD
L ... (the above covers)
M ...(the above covers)
N ...(the above covers)
W ...(the above covers)
Actually, the more comprehensive statement is:
DEBUG is a debugger, disassembler, memory editor, hard disk sector reader/writer, file reader/writer, hardware port reader/writer and addition/subtraction calculator..
Last edited by GOTOmsdos on 2008-5-5 at 01:46 PM ]
|
|
2007-3-29 12:44 |
|
|
download
初级用户
 
积分 199
发帖 101
注册 2007-3-13
状态 离线
|
『第 114 楼』:
使用 LLM 解释/回答一下
哈哈,楼上的有意思,我只是灌水了,你何必这么认真……纯路过……
Haha, what you said upstairs is interesting. I just made some casual posts, why do you need to be so serious... Just passing by...
|
|
2007-3-29 22:17 |
|
|
johnsonlam
银牌会员
     阿林
积分 1410
发帖 497
注册 2004-6-28 来自 九龍,香港
状态 离线
|
『第 115 楼』:
使用 LLM 解释/回答一下
Originally posted by download at 2007-3-29 10:17 PM:
哈哈,楼上的有意思,我只是灌水了,你何必这么认真……纯路过……
不 認 真 就 做 不 出 好 東 西 , 也 就 是 做 甚 麼 都 比 別 人 差 ...
這 樣 真 的 好 嗎 ?
Originally posted by download at 2007-3-29 10:17 PM:
Haha, the person upstairs is interesting. I just posted water content, why are you so serious... Just passing by...
Not being serious won't result in good work, which means everything you do will be worse than others...
Is this really good?
|

我 的 網 站 - http://optimizr.dyndns.org
|
|
2007-3-30 09:28 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 116 楼』:
使用 LLM 解释/回答一下
johnsonlam 兄你好..
这几天有点时间,很想解决的速度问题,可能一时解决不了. 就把我以前写的DOSBACK备份恢复MBR,DBR,FAT,CMOS的功能加加进来,也大大的加强了一些额外的功能,这样就较全面了,放在一个程序里用起来方便,一个小程序可解决很多问题..
1
DEBUG的扇区功能,原还剩一个功能(从硬盘扇区偏移读到文件,),现在也加进来了.
并支持压缩.
这样就完全替代超越了DEBUG的扇区功能了..
参数如下:
TOdisk -DWF 1 1000 123 FILE 12345 -ZIP 9
2
加进了dosback 的备份恢复MBR,DBR,FAT,CMOS的功能,完善为可处理任何硬盘任何分区的MBR,DBR,FAT,并也增加了和原分区的比较功能,
参数如下:
保存:
TOdisk -SPT C: CPT
TODISK -SDBR 1:3 DBR
TOdisk -SFAT 2:1 DFAT
恢复
(恢复时不需要输入分区号,只要文件名就行)
TOdisk -R FILE
比较:
TOdisk -C FILE
(比较时,不需要输入分区号,只要文件名就行)
CMOS
备份:
TOdisk -SCMOS FILE
恢复
TOdisk -RCMOS FILE
生成一个有效的CMOS密码
TOdisk -CMOSKEY
发布:
Last edited by GOTOmsdos on 2007-4-17 at 07:09 AM ]
Brother johnsonlam, hello..
I've had some free time these days and really want to solve the speed problem, but it might not be solved in a short while. So I added the functions of DOSBACK to back up and restore MBR, DBR, FAT, and CMOS that I wrote before, and also greatly strengthened some additional functions. This makes it more comprehensive, and it's convenient to use in one program; a small program can solve many problems..
1
The sector function of DEBUG originally had one remaining function (reading from the hard disk sector offset to a file), which is now added.
And it supports compression.
This completely replaces and surpasses the sector function of DEBUG..
The parameters are as follows:
TOdisk -DWF 1 1000 123 FILE 12345 -ZIP 9
2
Added the functions of backing up and restoring MBR, DBR, FAT, and CMOS of dosback, perfected to be able to handle MBR, DBR, and FAT of any hard disk and any partition, and also added the comparison function with the original partition,
The parameters are as follows:
Save:
TOdisk -SPT C: CPT
TODISK -SDBR 1:3 DBR
TOdisk -SFAT 2:1 DFAT
Restore
(No need to enter the partition number when restoring, just the file name)
TOdisk -R FILE
Compare:
TOdisk -C FILE
(No need to enter the partition number when comparing, just the file name)
CMOS
Backup:
TOdisk -SCMOS FILE
Restore
TOdisk -RCMOS FILE
Generate a valid CMOS password
TOdisk -CMOSKEY
Release:
Last edited by GOTOmsdos on 2007-4-17 at 07:09 AM ]
|
|
2007-3-30 12:37 |
|
|
henrya2
中级用户
  
积分 486
发帖 171
注册 2006-2-12
状态 离线
|
『第 117 楼』:
使用 LLM 解释/回答一下
要是能像最新的GHOST那样全面支持NTFS就好了
It would be nice if it could fully support NTFS like the latest GHOST.
|

Those who do not study the past are condemned to repeat it |
|
2007-3-31 09:01 |
|
|
johnsonlam
银牌会员
     阿林
积分 1410
发帖 497
注册 2004-6-28 来自 九龍,香港
状态 离线
|
『第 118 楼』:
使用 LLM 解释/回答一下
Originally posted by GOTOmsdos at 2007-3-30 12:37 PM:
johnsonlam 兄你好..
gotoMSDOS 兄 你 好 :
抱 歉 , Jack 因 為 很 少 用 C 語 言 , 未 能 針 對 你 的 問 題 找 到 解 決 方 法 , 幫 不 了 多 少 忙 。
这几天有点时间,很想解决的速度问题,可能一时解决不了. 就把我以前写的DOSBACK备份恢复MBR,DBR,FAT,CMOS的功能加加进来,也大大的加强了一些额外的功能,这样就较全面了,放在一个程序里用起来方便,一个小程序可解决很多问题..
這 樣 TOdisk 就 更 多 功 能 更 強 了 , 恭 喜 !
1
DEBUG的扇区功能,原还剩一个功能(从硬盘扇区偏移读到文件,),现在也加进来了.
并支持压缩.
这样就完全替代超越了DEBUG的扇区功能了..
参数如下:
TOdisk -DWF 1 1000 123 FILE 12345 -ZIP 9
2
加进了dosback 的备份恢复MBR,DBR,FAT,CMOS的功能,完善为可处理任何硬盘任何分区的MBR,DBR,FAT,并也增加了和原分区的比较功能,
参数如下:
保存:
TOdisk -SPT C: CPT
TODISK -SDBR 1:3 DBR
TOdisk -SFAT 2:1 DFAT
這 參 數 很 易 理 解 , 太 好 了 !
PT=Partition Table
DBR=DOS Boot Record
FAT=File Allocation Table
恢复
(恢复时不需要输入分区号,只要文件名就行)
TOdisk -R FILE
比较:
TOdisk -C FILE
(比较时,不需要输入分区号,只要文件名就行)
是 否 位 置 的 資 料 都 寫 在 文 件 裡 面 了 呢 ?
比 較 是 和 硬 盤 的 比 較 吧 ?
例 如 : TOdisk -C DFAT
是 檔 案 和 D: 的 FAT 作 比 較 吧
CMOS
备份:
TOdisk -SCMOS FILE
恢复
TOdisk -RCMOS FILE
猜出CMOS密码
TOdisk -CMOSKEY
這 個 也 非 常 有 用 呢 !
我 正 想 把 TOdisk 參 數 理 解 出 來 , 對 不 編 程 的 我 和 初 哥 們 較 易 理 解 , 可 是 近 來 公 司 很 忙 , 延 遲 至 今 天 也 未 完 全 搞 好 ... 總 算 有 點 頭 緒 了 !
不 知 新 版 有 否 改 動 , 舊 版 的 理 解 是 :
TOdisk {source} {destination}
{source} 可 以 是 簡 單 的 drive letter , 或 partition 如 1:1
{destination} 是 壓 縮 檔 名 字 和 其 特 徵 以 = 符 號 連 接 , 如 壓 縮 檔 存 放 在 d: , 名 字 是 drv-c.toz , 壓 縮 率 為 9 , 寫 法 就 是 d:\drv-c.toz=c9 , 加 上 括 號 表 示 這 是 一 個 整 體 的 命 令 .... 再 加 參 數 也 只 是 這 個 格 式 的 延 伸 。
Last edited by johnsonlam on 2007-3-31 at 11:45 PM ]
Originally posted by GOTOmsdos at 2007-3-30 12:37 PM:
Hello, Brother johnsonlam..
Hello, Brother gotoMSDOS :
Sorry, Jack rarely uses C language, so he couldn't find a solution to your problem and couldn't help much.
These days I have some time and really want to solve the speed problem, but maybe I can't solve it at once. So I added the functions of DOSBACK to back up and restore MBR, DBR, FAT, CMOS to it, and greatly strengthened some additional functions. This makes it more comprehensive, and it's convenient to use in one program. A small program can solve many problems..
This makes TOdisk more functional and powerful. Congratulations!
1
The sector function of DEBUG. There was originally one remaining function (reading from the hard disk sector offset to a file), which is now added.
And it supports compression.
This completely replaces and surpasses the sector function of DEBUG..
The parameters are as follows:
TOdisk -DWF 1 1000 123 FILE 12345 -ZIP 9
2
Added the functions of backing up and restoring MBR, DBR, FAT, CMOS of dosback, perfected to handle MBR, DBR, FAT of any hard disk and any partition, and also added the comparison function with the original partition,
The parameters are as follows:
Save:
TOdisk -SPT C: CPT
TODISK -SDBR 1:3 DBR
TOdisk -SFAT 2:1 DFAT
These parameters are very easy to understand. Great!
PT=Partition Table
DBR=DOS Boot Record
FAT=File Allocation Table
Restore
(No need to enter the partition number when restoring, just the file name)
TOdisk -R FILE
Compare:
TOdisk -C FILE
(No need to enter the partition number when comparing, just the file name)
Are the data of the yes/no positions all written in the file?
Is the comparison with the hard disk?
For example: TOdisk -C DFAT
Is it comparing the file with the FAT of D:
CMOS
Backup:
TOdisk -SCMOS FILE
Restore
TOdisk -RCMOS FILE
Guess CMOS password
TOdisk -CMOSKEY
This is also very useful!
I was just trying to understand the TOdisk parameters. It's easier for me who doesn't program and beginners to understand. But recently the company has been very busy, so it's delayed until today and hasn't been completely sorted out... Finally, there's some clue already!
I don't know if the new version has been changed. The understanding of the old version is:
TOdisk {source} {destination}
{source} can be a simple drive letter, or a partition such as 1:1
{destination} is the compressed file name and its characteristics connected by the = symbol. For example, if the compressed file is stored in d:, the name is drv-c.toz, and the compression ratio is 9, the writing method is d:\drv-c.toz=c9, and adding parentheses means this is an integral command.... Adding parameters is just an extension of this format.
Last edited by johnsonlam on 2007-3-31 at 11:45 PM ]
|

我 的 網 站 - http://optimizr.dyndns.org
|
|
2007-3-31 23:44 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 119 楼』:
使用 LLM 解释/回答一下
抱 歉 , Jack 因 為 很 少 用 C 語 言 , 未 能 針 對 你 的 問 題 找 到 解 決 方 法 , 幫 不 了 多 少 忙 。
没用C语言,其实没关系的,只要麻烦他说一说思路就可以了,至于用C语言的什么函数实现这个思路是我自己的事..(一般,不同的语言,基本能实现相同相似的功能的,只是写法不同而已...)
是 否 位 置 的 資 料 都 寫 在 文 件 裡 面 了 呢 ?
比 較 是 和 硬 盤 的 比 較 吧 ?
例 如 : TOdisk -C DFAT
是 檔 案 和 D: 的 FAT 作 比 較 吧
是这样的.
因为位 置 的 資 料 都 寫 在 文 件 裡 面 , 所以-R (恢复单个分区表,单个DBR或单个FAT)和-RALL(恢复机中全部硬盘或整个硬盘的分区表链和DBR)的道理也是一样
也就是说,你不需要记住当时保存的是哪个分区,是分区表还是DBR,还是FAT等等,
只要有文件就行了,用8个字节记录了的.
(不过,这就不能直接使用其他一般的工具来恢复了,因为多了8个字节.不过,如果一定要用也可以的,去除前面的8个字节就行;)
(当然事实上,你保存的时候,起的文件名是要帮助你自己记的. 另外,推荐使用 -SALL 和 -RALL来保存和恢复全部硬盘或某个硬盘的分区表和DBR<没有FAT>,一切都不要你费心.)
TOdisk {source} {destination}
应该是: TOdisk {source} TO {destination}
加上TO的意图是明确左边是源
(因为,有些程序,目标是放在左边.), 而且这也是TOdisk的标签和象征吧.
{source} 可 以 是 簡 單 的 drive letter , 或 partition 如 1:1
{source} 和 {destination} 也可以是文件,但是它们自然不能同时是文件(这就不是备份和恢复了, 不过这种情况可以是复制文件,比较文件或压缩解压缩文件, TOdisk也有比较文件和压缩解压缩文件的功能, 用法参看其他说明)
{destination} 是 壓 縮 檔 名 字 和 其 特 徵 以 = 符 號 連 接 , 如 壓 縮 檔 存 放 在 d: , 名 字 是 drv-c.toz , 壓 縮 率 為 9 , 寫 法 就 是 d:\drv-c.toz=c9 , 加 上 括 號 表 示 這 是 一 個 整 體 的 命 令 .... 再 加 參 數 也 只 是 這 個 格 式 的 延 伸 。
加上括号主要是跟硬盘参数,分区参数和盘符参数区别开来.
Last edited by GOTOmsdos on 2007-4-1 at 03:19 AM ]
Sorry, Jack rarely uses C language, so he couldn't find a solution to your problem and can't help much.
It's okay not to use C language. Actually, it's enough to just trouble him to talk about the idea. As for using which functions in C language to implement this idea, that's my own business..(Generally, different languages can basically achieve the same or similar functions, just with different writing methods...)
Are all the location data written in the file?
It's a comparison with the hard disk?
For example: TOdisk -C DFAT
Is it a comparison between the file and the FAT of D:
Yes.
Because all the location data is written in the file, so the principles of -R (restore a single partition table, single DBR or single FAT) and -RALL (restore the partition table chain and DBR of all hard disks in the machine or the entire hard disk) are the same.
That is to say, you don't need to remember which partition you saved at that time, whether it's the partition table, DBR, or FAT, etc.
As long as there is a file, it's recorded with 8 bytes.
(However, this can't be directly restored using other general tools because there are 8 more bytes. But if you must use it, you can remove the first 8 bytes;)
(Of course, in fact, the file name you saved should help you remember. In addition, it's recommended to use -SALL and -RALL to save and restore the partition table and DBR of all hard disks or a certain hard disk (without FAT), and everything doesn't need you to worry.)
TOdisk {source} {destination}
It should be: TOdisk {source} TO {destination}
The intention of adding TO is to clarify that the left is the source
(Because some programs place the target on the left.), and this is also the label and symbol of TOdisk.
{source} can be a simple drive letter, or a partition such as 1:1
{source} and {destination} can also be files, but they naturally can't be both files at the same time (this is not backup and restore, but in this case, it can be copying files, comparing files or compressing/decompressing files. TOdisk also has the functions of comparing files and compressing/decompressing files. For usage, refer to other instructions)
{destination} is the compressed file name connected with its characteristics by the = symbol. For example, if the compressed file is stored in d:, the name is drv-c.toz, and the compression ratio is 9, the writing method is d:\drv-c.toz=c9, and adding parentheses means this is an integral command.... Adding parameters is just an extension of this format.
Adding parentheses is mainly to distinguish it from hard disk parameters, partition parameters, and drive letter parameters.
Last edited by GOTOmsdos on 2007-4-1 at 03:19 AM ]
|
|
2007-4-1 01:47 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 120 楼』:
使用 LLM 解释/回答一下
Originally posted by henrya2 at 2007-3-31 09:01 AM:
要是能像最新的GHOST那样全面支持NTFS就好了
支持NTFS 这个没有在程序的计划中,时间不允许
不过,如果只有NTFS分区存放备份文件, 可以试试 先加载NTFSPRO,然后再运行本程序,看看行不行. 这要看NTFSPRO是不是稳定了..
Originally posted by henrya2 at 2007-3-31 09:01 AM:
It would be great if it could fully support NTFS like the latest GHOST.
Supporting NTFS is not in the program's plan, and there's not enough time.
However, if there's only an NTFS partition storing backup files, you can try loading NTFSPRO first and then running this program to see if it works. This depends on whether NTFSPRO is stable.
|
|
2007-4-1 03:50 |
|
|