中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-06 11:24
47,812 topics / 349,914 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » Partition Table Backup Tool miniTO Source Code (Three Versions, Including Executable)
Printable Version  16,483 / 57
Floor1 GOTOmsdos Posted 2007-04-29 11:42
铂金会员 Posts 1,827 Credits 5,154
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 ]

Attachments
minito源码(修正0值分区项bug).rar (325.9 KiB)
Floor2 cchessbd Posted 2007-04-29 13:13
高级用户 Posts 222 Credits 525
Thank you, I'll download it to study.

However, I'm really inexperienced...
Floor3 darkradx Posted 2007-04-29 16:04
高级用户 Posts 420 Credits 972
Thank you
Floor4 jyssysz Posted 2007-04-29 22:11
中级用户 Posts 50 Credits 343
Thank you for sharing. You are a true expert among experts.
Floor5 0189105 Posted 2007-04-30 08:35
新手上路 Posts 6 Credits 12
Thank you for sharing.
Floor6 terse Posted 2007-04-30 09:47
银牌会员 Posts 946 Credits 2,404
Thank you for sharing. You are a true expert! However, I am really inexperienced.
Floor7 0451lym Posted 2007-04-30 12:54
高级用户 Posts 357 Credits 760
Wow, I salute the original poster.
Floor8 本是 Posted 2007-04-30 21:20
银牌会员 Posts 790 Credits 2,227
Thank you for sharing the source code! Well done!
Floor9 GOTOmsdos Posted 2007-05-01 07:27
铂金会员 Posts 1,827 Credits 5,154
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...
Floor10 GOTOmsdos Posted 2007-05-01 17:45
铂金会员 Posts 1,827 Credits 5,154
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 ]
Floor11 GOTOmsdos Posted 2007-05-02 21:49
铂金会员 Posts 1,827 Credits 5,154
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.
Floor12 GOTOmsdos Posted 2007-05-03 17:53
铂金会员 Posts 1,827 Credits 5,154
Added the function to display the total table of hard disks and partitions, updated.
Floor13 ldljlzw Posted 2007-05-05 10:37
初级用户 Posts 12 Credits 127
Thank you.
Floor14 GOTOmsdos Posted 2007-05-05 18:57
铂金会员 Posts 1,827 Credits 5,154
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 ]
Floor15 adiwdmd Posted 2007-05-09 01:24
初级用户 Posts 15 Credits 50
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
1 2 3 4  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023