China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 09:03
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Comprehensively enhance the integration of "disk/system backup/files/compression" all in one TOdisk View 23,678 Replies 183
Floor 121 Posted 2007-04-02 06:14 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The following is the update:

1
Added: Compress, decompress FAT, compare compressed FAT functions
Parameters are:
TOdisk -SFATZ 1:2 DFATZ
Backup the FAT of partition 1:2 and compress it (the level is the default 6), and the file name is DFATZ
If the compression level is 9, as follows:

TOdisk -SFATZ9 1:2 DFATZ

When comparing, the parameters are the same for the compressed FAT and the uncompressed FAT
(The program will automatically detect whether it is compressed)

2
Eliminated a piece of 64KB memory
(Wait a while to determine the memory usage according to the size of the user's input data, which is better)

3
Killed two bugs:
a, When comparing compressed files, the buffer pointer of the non-compressed file is incorrect
b, When backing up the partition table chain and DBR of a single hard disk, it is invalid.

4
After version 2.2, because the DEBUG information in the program was removed during compilation, the volume is greatly reduced! Reduced by 50KB!

Reuploaded

[ Last edited by GOTOmsdos on 2007-4-17 at 07:04 AM ]
Floor 122 Posted 2007-04-03 07:50 ·  中国 香港 Cyber_Express通信公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline

Great, but it's too bad that I'm very busy before the holiday and have no time to update the webpage for the moment...
我 的 網 站 - http://optimizr.dyndns.org
Floor 123 Posted 2007-04-03 08:43 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
It doesn't matter. Wait until you have time to do it. You should pay attention to rest as you are busy with work.
Floor 124 Posted 2007-04-03 12:02 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The following updates are as follows:
1. Add the comparison of the partition table chain of all hard disks or a single hard disk, DBR with the original information of the hard disk
2. Change the automatic check of compressed files in the display file to check compressed files only when there are -PFSZ and -PFBZ, so that the requirement that the user needs to display the content of un - decompressed compressed files can be met.

For example:
The compressed file is: ZIPFILE

TOdisk -PFB ZIPFILE 12 34 56
Do not check whether it is a decompressed file, display the 56 bytes at the offset of 34 in the 12th sector of ZIPFILE

TOdisk -PFBZ ZIPFILE 12 34 56
Check whether it is a decompressed file, if it is, first decompress ZIPFILE, then display the 56 bytes at the offset of 34 in the 12th sector of the decompressed ZIPFILE

TOdisk -PFS ZIPFILE 12 56
Do not check whether it is a decompressed file, display the 12th sector of ZIPFILE, a total of 56 sectors

TOdisk -PFSZ ZIPFILE 12 56
Check whether it is a decompressed file, if it is, first decompress ZIPFILE, then display the 12th sector of the decompressed ZIPFILE, a total of 56 sectors

Re - uploaded
[ Last edited by GOTOmsdos on 2007 - 4 - 17 at 07:05 AM ]
Floor 125 Posted 2007-04-04 08:37 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
TOdisk - CMOSKEY
Sometimes, when the password is less than 8 characters, the generated CMOS password may be inaccurate
Floor 126 Posted 2007-04-07 02:34 ·  中国 香港 Cyber_Express通信公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
The chance rate is 40%, not sure if it's triggered by DJGPP or some Class library?
我 的 網 站 - http://optimizr.dyndns.org
Floor 127 Posted 2007-04-07 06:45 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
You mean the TOdisk DJGPP version?
It runs fine here.
But you can check again to see if there are any areas that are not perfect.

(Additional note, actually I made the DJGPP version mainly to see if I could speed it up. The result is that although it was made, it can use large memory and break through the DOS 64KB limit, and it runs normally, but it still can't speed up, and maybe it's even a little slower. So that TOdisk DJGPP version is just for fun...)

[ Last edited by GOTOmsdos on 2007-4-7 at 07:06 AM ]
Floor 128 Posted 2007-04-07 07:01 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The following are the changes and additions:

1. Check the available disk space before writing a file, and estimate the space for the compressed file (including checking the available space on -site before writing after each compression)

2. For the functions added later, add the interrupt function during operation

3. For the functions added later, add the timely display of the completion amount, in percentage. To relieve the boredom of waiting during the program operation, a set of dynamic character displays (- \ | /) is also added. The LINUX system displays this when checking the disk. I think it's quite fun, so I added it...

[ Last edited by GOTOmsdos on 2007-4-7 at 08:10 AM ]
Floor 129 Posted 2007-04-08 09:34 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The above functions have been successfully added and preliminary testing has passed.

Plan to re-add the function of supporting floppy disks, it's not troublesome, just change a few lines of code
(The previous old version supported floppy disks, and at that time it was wildly designed to support old hard drives that couldn't use extended interrupt 13!, Now consider adding the function of supporting floppy disks again, after all, DOS and floppy disks are a pair, sometimes they can still be used as a last resort)

[ Last edited by GOTOmsdos on 2007-4-17 at 07:05 AM ]
Floor 130 Posted 2007-04-09 08:17 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The subsequent supplementary functions of TOdisk have successfully added support for floppy disk functions:

Immediately add support for floppy disk functions to the original functions of TOdisk

[ Last edited by GOTOmsdos on 2007-4-17 at 07:05 AM ]
Floor 131 Posted 2007-04-10 05:02 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The update has been successfully completed.

1
Support for floppy disks has been added. When operating the floppy disk in sector mode, you can use A: or B: instead of numbers like 1 or 2 to represent the disk. For example:
TOdisk -DWF A: 12 34 C:\FILE 56
Store the data starting from sector 12 and offset 34 on A: into C:\FILE, with a total of 56 sectors. For other functions, except that the functions of backing up the partition table, DBR, and FAT do not support floppy disks (because it is unnecessary), the same can be used in this way.

2
Check the disk space (if it is a compressed file, check it in real time).

3
And add a function to display the compression information of the compressed file generated by TOdisk for the newly added function:
The parameters are as follows:
TOdisk -SZ ZIPFILE (SZ: Show Zipfile info)
Display
a
Original compressed size
b
Compressed size
c
Compression ratio
d
Whether there is a password

So far, the comprehensive functional update of TOdisk has been completed. It has been re - uploaded.

The final planned function:
In the main program, TOdisk uses the minus sign (-) to represent the starting sector to be operated, and the plus sign (+) to represent the total number of sectors to be operated. But in the file parameter, the minus sign (-) cannot be used, that is, the sector number of the file content cannot be specified. (But it has been fully supported in the newly added functions later). So, next, I want to add this function (the only place where the starting sector cannot be specified). If it is successfully added, then TOdisk can be said to be able to accurately handle disk sectors and file contents!

[ Last edited by GOTOmsdos on 2007 - 4 - 17 at 07:06 AM ]
Floor 132 Posted 2007-04-10 05:33 ·  中国 山东 菏泽 联通
银牌会员
★★★
Credits 1,246
Posts 488
Joined 2003-11-11 00:00
22-year member
UID 12699
Gender Male
Status Offline
It's time to write a synchronized readme again.
Floor 133 Posted 2007-04-10 05:45 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Yes, I've been adding new features all the time, and I just haven't had time to update the documentation yet! I'll get to it soon...
Floor 134 Posted 2007-04-10 12:56 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Just added the function to write file content from a specified sector and offset to another file, and support compression for source and target files.

Parameters are as follows:

TOdisk -FWF FILE1 12 34 FILE2 56
Write the content of FILE1 from sector 12 offset 34 to FILE2, writing 56 bytes in total

TOdisk -FWFZ FILE1 12 34 FILE2 56
(Compressed, default level 6)

Updated

[ Last edited by GOTOmsdos on 2007-4-17 at 07:06 AM ]
Floor 135 Posted 2007-04-11 04:34 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The following bugs are found and corrected:

When using the volume splitting function:
1. When creating an existing file, when the program asks whether to overwrite and you choose not to overwrite and enter another file name, creating a new volume split errors.
2. When entering a file name on a different drive, the remaining disk space checked is still for the drive before the change.

Re-upload:

[ Last edited by GOTOmsdos on 2007-4-17 at 07:06 AM ]
‹ Prev 1 7 8 9 10 11 13 Next ›
Forum Jump: