|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『楼 主』:
分区表备份器 miniTO 源码 (三种版本,含可执行)
使用 LLM 解释/回答一下
现传上源码...希望能对正学习DOS,WINDOWS,磁盘和编程者有点帮助...
内含纯DOS,WIN32控制台和WIN32 GUI三个版本.它们生成的备份文件可以在任何版本中使用.
主功能: 备份/恢复/替换/比较/打印 分区表/分区引导/文件分配表/CMOS
不支持USB磁盘
DOS版具有全部功能
WIN版控制台 暂未开启打印功能和CMOS
WIN版GUI 暂未开启比较、打印功能和CMOS
WIN32 版本的暂未开启的功能的模块都是完整的,如果想使用,可自行打开调用的开关或加几句调用的代码就可以了, 以后有时间我再把它们加上去,...)
(在WIN,打印功能是不能使用直接使用DOS的代码的,要把它们先送到编辑框的缓冲区再显示的...有兴趣的也可自己弄...)
因刚刚从DOS代码转写成WIN,程序提示还没有完全改写成WIN的,printf()等还留在里面,不过对编译没有影响,有时间可以改写掉,
因时间关系,没有详细的注释,不过在写的时候,变量名字基本是根据其功能起的,所以,对程序的代码思路还是不难理解的..
Last edited by GOTOmsdos on 2007-9-22 at 08:44 AM ]
I am now uploading the source code... I hope it can be helpful to those learning DOS, Windows, disk systems, and programming.
It includes three versions: pure DOS, WIN32 Console, and WIN32 GUI. The backup files generated by these versions can be used across any version.
Main functions: Backup/restore/replace/compare/print partition tables, partition boot sectors, file allocation tables, and CMOS.
USB disks are not supported.
The DOS version includes all functions.
The WIN32 Console version has not yet enabled the print function and CMOS operations.
The WIN32 GUI version has not yet enabled the compare function, print function, and CMOS operations.
The modules for the unimplemented functions in the WIN32 versions are complete. If you wish to use them, you can manually enable the call switches or add a few lines of calling code. I will add them in the future when I have time...
(In Windows, the print function cannot directly use DOS code; it needs to first send content to the edit box buffer for display... Those interested can implement this themselves...) Since this was just converted from DOS code to Windows, the program prompts have not been fully adapted to Windows, and functions like printf() remain, but they do not affect compilation. They can be rewritten when time permits. Due to time constraints, there are no detailed comments, but variable names were generally chosen based on their functions during writing, so the code structure should be relatively easy to understand.
Last edited by GOTOmsdos on 2007-9-22 at 08:44 AM ]
附件
1: minito源码(修正0值分区项bug).rar (2007-9-5 22:02, 325.9 KiB,下载次数: 1068)
|
|
2007-4-29 11:42 |
|
|
cchessbd
高级用户
   
积分 525
发帖 222
注册 2006-8-28
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
感谢,下来学习下.
不过我实在是菜... ...
Thank you, I'll download it to study.
However, I'm really inexperienced...
|
|
2007-4-29 13:13 |
|
|
darkradx
高级用户
   
积分 972
发帖 420
注册 2004-5-16
状态 离线
|
|
2007-4-29 16:04 |
|
|
jyssysz
中级用户
  
积分 343
发帖 50
注册 2004-2-21
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
谢谢共享,高手中的高手。
Thank you for sharing. You are a true expert among experts.
|
|
2007-4-29 22:11 |
|
|
0189105
新手上路

积分 12
发帖 6
注册 2007-3-29
状态 离线
|
|
2007-4-30 08:35 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
谢谢共享,高手中的高手!
不过我真的很菜... ...
Thank you for sharing. You are a true expert! However, I am really inexperienced.
|
|
2007-4-30 09:47 |
|
|
0451lym
高级用户
   
积分 760
发帖 357
注册 2005-10-10
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
晕,向楼主敬礼!!!!
Wow, I salute the original poster.
|
|
2007-4-30 12:54 |
|
|
本是
银牌会员
    
积分 2221
发帖 789
注册 2005-1-27
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
感谢共享源码!赞叹!
Thank you for sharing the source code! Well done!
|

my major is english----my love is dos----my teacher is the buddha----my friends--how about U |
|
2007-4-30 21:20 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
win32图形版源码已更新上传,更新如下:
1
加入恢复和替换功能,这样本工具的主体功能都有了.
2
把硬盘号和分区的手动输入改为弹出列表供选择,这样方便使用,并且不容易错.
已用自己的真机测试过,通过...
The source code for the Win32 graphical version has been updated and uploaded. The updates are as follows:
1
Added recovery and replacement functions, so all main functions of this tool are now available.
2
Changed the manual input of hard disk numbers and partitions to a pop-up list for selection, making it more convenient to use and less error-prone.
Tested on my own physical machine and confirmed to work...
|
|
2007-5-1 07:27 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
正在改善程序生成的文件的结构,使得程序即使用户输入了不同类型的文件名而不会犯错..(比如输入了单个分区的FAT的备份文件名,却选了恢复到全部硬盘的分区表的选项, 程序仍然执行恢复单个分区的FAT! 反之亦然)
这样,就强健了..
Last edited by GOTOmsdos on 2007-5-3 at 12:13 AM ]
I am improving the structure of the files generated by the program to ensure that the program does not make errors even if the user inputs different types of filenames. For example, if the user enters a backup filename for the FAT of a single partition but selects the option to restore the partition table of the entire hard drive, the program will still execute the restoration of the FAT for the single partition, and vice versa. This makes the program more robust.
Last edited by GOTOmsdos on 2007-5-3 at 12:13 AM ]
|
|
2007-5-1 17:45 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
上述的改善强健计划已完成,已更新.
现在加入显示硬盘和分区总表的功能
The above improvement and enhancement plan has been completed and updated. Now, a function to display the total table of hard disks and partitions has been added.
|
|
2007-5-2 21:49 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
已加入显示硬盘和分区总表的功能 ,
更新了.
Added the function to display the total table of hard disks and partitions, updated.
|
|
2007-5-3 17:53 |
|
|
ldljlzw
初级用户
 
积分 127
发帖 12
注册 2003-6-20
状态 离线
|
|
2007-5-5 10:37 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
又更新如下:
1
现在三个版本生成的文件都互相兼容了...并且,如果误把单个分区的分区表或分区引导或FAT的备份文件恢复到整个硬盘或着相反,也会成功恢复到你想要恢复到的地方! 而不会犯错.
2
增加了在备份文件时写入程序的标志,以便恢复时对输入文件进行检查,这样就避免了用户输入错误的文件名而造成错误.
3
一直没有时间把DOS版的参数和帮助换成简洁的WIN版的,现在都更新了.
至此,三个版本的系列都完整了.
程序也更健壮了..
Last edited by GOTOmsdos on 2007-5-5 at 10:41 PM ]
Updated as follows:
1
Now, the files generated by the three versions are compatible with each other... Additionally, if you mistakenly restore a backup file of a single partition's partition table, partition boot sector, or FAT to the entire hard drive, or vice versa, it will still successfully restore to the location you intended without errors.
2
Added a program identifier when backing up files to check the input file during restoration, thus preventing errors caused by users entering incorrect filenames.
3
I never had time to replace the parameters and help content of the DOS version with the concise style of the Windows version; now this has been updated.
With this, the series of three versions is complete.
The program is also more robust now.
Last edited by GOTOmsdos on 2007-5-5 at 10:41 PM ]
|
|
2007-5-5 18:57 |
|
|
adiwdmd
初级用户
 
积分 50
发帖 15
注册 2005-10-2
状态 离线
|
『第 15 楼』:
ddd
使用 LLM 解释/回答一下
谢谢 这个工具非常的棒,基本解决了我的问题.
只是有一点不足: 加载ifs后,用 minito /p /nohp /ifs 命令能正常显示被ifs装载的NTFS分区盘符,却无法显示ifs装载的隐藏分区的盘符.
希望可以改进下.本人菜鸟,如是本人操作错误请多包含
a:\>ifs
Loading IFS driver..
Dos LFN services installed
Mounted DOS Drives: E: F: G:
a:\>minito /p /nohp /ifs
N:N : PRI/LOG ACT HIDE ID FILE SYSTEM LABEL TOTALmb FREEmb
1:1 = E: PRIMARY YES NO 07 NTFS/HPFS 1513
1:2 = C: LOGICAL NO NO 0B FAT32 NO NAME 2266 2262
1:3 = F: LOGICAL NO NO 07 NTFS/HPFS 2266
1:4 = D: LOGICAL NO NO 0B FAT32 NO NAME 760 759
1:5 LOGICAL NO YES 1B FAT32 NO NAME 1380
Thanks, this tool is really great, it basically solved my problem.
Just one shortcoming: After loading IFS, the command "minito /p /nohp /ifs" can normally display the drive letters of the NTFS partitions loaded by IFS, but cannot display the drive letters of the hidden partitions loaded by IFS.
Hope to improve it. I'm a novice. Please bear with me if it's my operation error
a:\>ifs
Loading IFS driver..
Dos LFN services installed
Mounted DOS Drives: E: F: G:
a:\>minito /p /nohp /ifs
N:N : PRI/LOG ACT HIDE ID FILE SYSTEM LABEL TOTALmb FREEmb
1:1 = E: PRIMARY YES NO 07 NTFS/HPFS 1513
1:2 = C: LOGICAL NO NO 0B FAT32 NO NAME 2266 2262
1:3 = F: LOGICAL NO NO 07 NTFS/HPFS 2266
1:4 = D: LOGICAL NO NO 0B FAT32 NO NAME 760 759
1:5 LOGICAL NO YES 1B FAT32 NO NAME 1380
|
|
2007-5-9 01:24 |
|