中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-12 07:05
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行
DOS开发编程 & 发展交流 (开发室) » 全面增强《磁盘/系统备份/文件/压缩》集于一身 TOdisk
可打印版本  25,083 / 183
第76楼 johnsonlam 发表于 2007-01-09 06:10
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by GOTOmsdos at 2007-1-8 12:28 PM:
那个俄语网站确实是收了我的TOdisk, 有如下标题:
"TOdisk 1.2 alpha Copyright(c) by GOTOmsdos"
URL:
http://talk.mail.ru/forum/fido7.ru.dos?page=7

不过,有 ...



Jill Kross 是 文 章 作 者 , 他 是 专 向 别 的 俄 国 人 介 绍 DOS 软 体 的 ( 就 像 我 在 这 里 介 绍 Jack Ellis 的 驱 动 ), 因 为 不 是 每 个 俄 国 人 都 会 英 语 啊 !
第77楼 GOTOmsdos 发表于 2007-01-11 02:04
铂金会员 发帖 1,827 积分 5,154
带着极大的好奇,测试了经Lucho大大缩减了的TOdisk(从原来的106KB缩减到47KB)
发现,有时运行正确,而有时却使电脑重启了!不知道就是缩减的原因还是我电脑的原因?
不解中。。。
第78楼 cchessbd 发表于 2007-01-11 07:56
高级用户 发帖 222 积分 525
Originally posted by GOTOmsdos at 2007-1-11 02:04:
带着极大的好奇,测试了经Lucho大大缩减了的TOdisk(从原来的106KB缩减到47KB)
发现,有时运行正确,而有时却使电脑重启了!不知道就是缩减的原因还是 ...


貌似upx压缩后就是这个大小吧?
难道有什么问题?
第79楼 cchessbd 发表于 2007-01-11 08:01
高级用户 发帖 222 积分 525
Originally posted by GOTOmsdos at 2006-10-15 23:12:
之所以没有GHOST速度快的原因可能是GHOST用了超大缓冲
可能是 farmalloc()配合一种能超越64kb的一次文件读写
不知道具体是怎么实现的。。。


把这个功能实现了,然后像GHOST一样,支持NTFS,再实现类似1:2\path\name 的访问。不就可以替代GHOST了?
哇哈哈……
第80楼 本是 发表于 2007-01-11 09:37
银牌会员 发帖 790 积分 2,227
Originally posted by cchessbd at 2007-1-11 08:01:
一种能超越64kb的一次文件读写……


用UNREAL模式+XMS调用(请参考REALMEM.ZIP[http://ftp.lanet.lv/ftp/mirror/x2ftp/msdos/programming/memory/realmem.zip])
第81楼 GOTOmsdos 发表于 2007-01-11 10:14
铂金会员 发帖 1,827 积分 5,154
恩,要用XMS才能实现和GHOST一样快,这个费一些时间是可能实现的
要程序本身支持镜象文件为NTFS就不太可能实现了,不过,如果有现成的NTFS类也行的。。

[ Last edited by GOTOmsdos on 2007-1-11 at 11:23 AM ]
第82楼 johnsonlam 发表于 2007-01-11 23:01
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by GOTOmsdos at 2007-1-11 10:14 AM:
恩,要用XMS才能实现和GHOST一样快,这个费一些时间是可能实现的
要程序本身支持镜象文件为NTFS就不太可能实现了,不过,如果有现成的NTFS类也行的 ...


关 于 XMS 有 一 点 可 告 诉 大 家 , QHIMEM 经 过 Jack 兄 苦 心 经 营 , 速 度 很 高 也 没 有 别 个 "XMS Manager" 硬 体 兼 容 问 题 , 还 是 完 整 XMS 3.0 呢 ( 原 来 Microsoft EMM386 只 有 XMS 2.0 ! )

对 于 今 时 今 日 的 电 脑 来 说 , 那 几 百 MB 的 记 忆 体 花 钱 买 了 却 不 能 在 DOS 下 好 好 利 用 , 真 有 点 冤 枉 !

NTFS 能 否 用 扇 区 "盲 读" 方 式 强 行 複 制 呢 ?
第83楼 johnsonlam 发表于 2007-01-11 23:04
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by cchessbd at 2007-1-11 07:56 AM:
貌似upx压缩后就是这个大小吧?
难道有什么问题?



正 是 UPX !
近 来 没 空 再 试 ... 但 应 该 没 问 题 吧 。
我 有 很 多 UPX 压 缩 过 的 DOS/WIN32 程 序 都 执 行 良 好 。
第84楼 johnsonlam 发表于 2007-01-11 23:10
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by GOTOmsdos at 2007-1-11 02:04 AM:
带着极大的好奇,测试了经Lucho大大缩减了的TOdisk(从原来的106KB缩减到47KB)
发现,有时运行正确,而有时却使电脑重启了!不知道就是缩减的原因还是 ...



把 其 它 不 重 要 的 驱 动 先 卸 下 , 然 后 再 试 试 吧 。

还 要 测 试 的 就 是 QCACHE (QDMA 已 在 内) , 两 者 同 时 运 行 不 应 该 有 问 题 的 !


[ Last edited by johnsonlam on 2007-1-11 at 11:12 PM ]
第85楼 GOTOmsdos 发表于 2007-01-12 02:26
铂金会员 发帖 1,827 积分 5,154
Originally posted by cchessbd at 2007-1-11 07:56 AM:


貌似upx压缩后就是这个大小吧?
难道有什么问题?


我说的是解压后是47KB(原程序是106KB)
所以我奇怪。
第86楼 GOTOmsdos 发表于 2007-01-12 02:32
铂金会员 发帖 1,827 积分 5,154
NTFS 能 否 用 扇 区 "盲 读" 方 式 强 行 複 制 呢 ?

TOdisk 由于是扇区方式,所以对于处理硬盘,分区,扇区的数据是不管文件系统的(就是说,不管是FAT,NTFS,LINUX等等)
只是如果要处理镜象文件时,镜象文件所在的分区必须是FAT(正如GHOST的以前版本那样)
第87楼 GOTOmsdos 发表于 2007-01-12 05:48
铂金会员 发帖 1,827 积分 5,154
感觉英文文档有些很重要的使用说明没有写上去,现补充一些,等一下再写完它

HardDisk/Partition/Sector Backup/Restorer <by SECTOR CLONE>
TOdisk version 1.3 Alpha Copyright (C) 2006-2007 by GOTOmsdos, Jan 13 2007
Email : tdaim@sina.com
Homepage : http://mykool.go2.icpcn.com/

Many THANKS to :
johnsonlam(HONGKONG), fastslz from China DOS Union
Lizhi(author of DDCOPY)
Lucho(one of key developers of FreeDOS)
other enthusiasts

Welcome to visit(for DOS intercourse):
http://www.cn-dos.net/ <China DOS Union>
http://johnson.tmfc.net/dos/ <johnsonlam>

Environment for execution : MS-DOS / Win9x_MS-DOS_BOX

Syntax:
<DO mode>
TOdisk SRC1 TO DST1 ]]]]
<LOOK mode>
TOdisk |-P|]]

<DO mode>

SRC/DST set: (DISK set, PARTITION set, DOSLETTER set, IMAGEFILE set)
1, DISK set >> 1 or 2...n
2, PARTITION set >> 1:2 or 2:3...n:n
3, DOSLETTER set >> C: or D:...Z:
4, IMAGEFILE set >>
Parameters for IMAGEFILE set:
=Cn - C : COMPRESS
n : compress level(1-9). Default 6 would be the optimum of
intensity and speed. Default is taken if no "n" is specified
=K - K : require KEY for compress
=Vn - V : multiVOLUME
n : every volume MBs(ranging from 1 to 2047<FAT16>,4095<FAT32>)
Default is 2047, if no "n" is specified. Needless if it's in SRC
=E? - E : put the compress key of first volume into EVERY following volume
? : PROMPT for compress key to every following volume
--A
as DST set:
(c:\image.to)
...
...
...
(c:\image.toz=Cn=K=Vn=E?)
Eaxmple:
(g:\image.toz=c7=k=v1000=e?)

(NOTICE:
In multi-task with FREE mode, if any IMAGEFILE set(s) as DST set are used,
they must be the LAST and the ONLY ONE IMAGEFILE set in all DST set(s) !
Examples:
Legal:
1:1 TO 2:3,3:4,(g:\image.toz=c=v)
1:1,2:2,3:3 TO 2:3,3:4,(g:\image.toz=c=v)
1:1,2:2,3:3 TO 2:3,(g:\image.toz=c=v),3:4 -p
1:1,3:4,4:4 TO 2:3,(f:\image1.toz=c=v),(g:\image2.toz=c=v) -p
Illegal 1:
1:1 TO 2:3,(g:\image.toz=c=v),3:4
1:1,2:2,3:3 TO 2:3,(g:\image.toz=c=v),3:4
(FREE mode, and not in the last)
Illegal 2:
1:1,3:4,4:4 TO 2:3,(f:\image1.toz=c=v),(g:\image2.toz=c=v)
(FREE mode, but more than one IMAGEFILE set)
)

--B
as SRC set: (Program automatically checks if it is compressed,
whether or not its extension is "toz". NO "=C" is needed)
(c:\image.toz) (not automatically search for SEPARATE VOLUMEs)
(c:\image.toz=v) (automatically search for SEPARATE VOLUMEs)

(As to IMAGEFILE name, to avoid confusion,
SUGGEST that extension be "to" for those without compression, "toz" for
those with compression, though the program doesn't force extension check
)

in SRC/DST set
- : specify start sector
+ : specify sectors to do
But neither of them are allowed in MATCHED mode, and no '-' is allowed in
IMAGEfile set
Examples:
1-5000
1:2+5000
D:-5000+10000
(g:\image.toz)+3000

SRC/DST set switches:
=q : quiet (no question to you)
=m : mute (no information words)
=i : ignore (ignore read(if it's in SRC) or write(if it's in DST) error,
not allowed in IMAGEFILE set)
=n : next (go to next task if any fatal error is encountered)
Example:
1:2=q=m,3:4 TO 4:1=i=n,(file=c)=q=m

Must be used after '-' and '+' if any, and only valid to this task with it
Example:
1:2-300+400=q=m,3:4 TO 4:1=i=n,(file=c)+500=q=m

Global Switch 1 (mode switch):

--A
(MATCHED mode)
-d|p: disk|partition subMode
In MATCHED mode, the number of SRC sets must EQUAL that of DST sets !
And in partition subMode, if a DST set is partition set, its partition ID
will be refreshed

Example for -d:
1,2 TO 3,4 -d
is equivalent to two separate operations:
1 TO 3
2 TO 4
is not equivalent to 1,2 TO 3,4
unless that 1, 2 have the same capacity as 3, 4 respectively

Example for -p:
1:2,4:3,2:2 TO 2:3,(d:\back.toz=c),4:5 -p
is equivalent to three separate operations:
1:2 TO 2:3 -p
4:3 TO (d:\back.toz=c)
2:2 TO 4:5 -p
Among them, because the first and the third task are both with one of MATCHED
modes <-p is one of it> and in partition writing operation<DST is partition
not IMAGEFILE>, -p is required for partitionID refreshing, even though it's
a separate operation

--B
(FREE mode)
NO -d|p switch
In FREE(UNmatched) mode, the number of SRC sets needn't equal that of DST
sets for there is a relation of succession between one task and its next
one in the course of data conveying

Example with equal number of SRC sets and DST sets:
given HardDisk 1 (all sectors is 1000)
HardDisk 2 (all sectors is 2000)
HardDisk 3 (all sectors is 1500)
HardDisk 4 (all sectors is 3000)
1,2 TO 3,4
This is FREE mode, the course is as follows:
Task 1:
1000 sectors of HardDisk 1 is copied to HardDisk 3
(The task of HardDisk 1 is completed, exit)
Task 2:
1500-1000=500 sectors of HardDisk 2 is copied to HardDisk 3
(The task of HardDisk 3 is completed, exit)
Task 3:
2000-500=1500 sectors of HardDisk 2 is copied to HardDisk 4
(The task of HardDisk 2 is completed, exit)
Either of SRC and DST has been completed, program exits

Example with unequal number of SRC sets and DST sets:
1 TO 2:3,3:4,4:5,(g:\file.to)

Global switch 2:

-q|quiet : no question to you
-m|mute : no information words
-i|ignore : ignore both read and write error
-ir|ignorereaderror : ignore read error
-iw|ignorewriteerror : ignore write error
-n|next : go to next task if fatal error is encountered

Example:
1:2,E: TO 2:3,(back.toz=c) -q -m -n -i

More examples:

Single-task:
1 TO 2
copy disk1 to disk2

1-100+1000 TO 2-200
at sector100 copy disk1 1000 sectors to disk2 at sector200

1:2 TO 2:3
copy disk1 partition2 to disk2 partition3

1:2-200+1000 TO 2:3-300
copy at sector200 disk1 partition2 to disk2 partition3 at sector300

1:2 TO (d:\backup.toz=c=k=v1000=e?)
backup disk1 partition2 to IMAGE file d:\backup.toz
c - compress level 6(default)
k - key
v1000 - separate volume, every is 1000 MBs
e? - prompt for compress key to every volume

Multi-task:
MATCHED mode:
1:2,(h:\image.toz=v),2:3 TO (g:\image.toz=c=v),D:,3:2 -p
FREE mode:
1:2,2:3-2345,3:4 TO 3:3-1234+300,4:1+3456,(i:\image.toz=c=v1000)

<LOOK mode>

-Dn show disk n info
-P show parition info
noz|nozero : not show zeroID partition
noh|nohidden : not show hidden partition
nozh|nozerohidden : not show zeroID and hidden partition
fn|fatntfs : show FAT and NTFS partition
f|fat : show FAT parition
l|linux : show linux parition

n:n - 1:2 or 2:3 ...
A: - C: or D: ... Z:

Examples:
-d : show all drive
-d2 : show drive 2
-p : show all partition
-pfn : show FAT and NTFS parition
-p2:3 : show disk2 partition3
-pc: : show C:

[ Last edited by GOTOmsdos on 2007-1-15 at 09:35 PM ]
第88楼 johnsonlam 发表于 2007-01-12 10:11
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by GOTOmsdos at 2007-1-12 05:48 AM:
感觉英文文档有些很重要的使用说明没有写上去,现补充一些,等一下再写完它

HardDisk/Partition/Sector Backup/Restorer <By SECTOR CLONE>
TOdisk version 1.2 Al ...



謝 謝 !

我 正 在 更 新 網 頁 , 中 文 說 明 比 較 難 搞 , 需 要 點 時 間 。
英 文 的 會 盡 快 更 新
第89楼 johnsonlam 发表于 2007-01-12 10:12
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by GOTOmsdos at 2007-1-12 02:32 AM:

TOdisk 由于是扇区方式,所以对于处理硬盘,分区,扇区的数据是不管文件系统的(就是说,不管是FAT,NTFS,LINUX等等)
只是如果要处理镜象文件时 ...



謝 謝 !
即 是 說 可 以 甚 麼 參 數 都 不 用 去 clone WindowsXP 或 Linux 了 , 真 好 !
第90楼 johnsonlam 发表于 2007-01-12 10:15
银牌会员 发帖 497 积分 1,410 来自 九龍,香港
Originally posted by GOTOmsdos at 2007-1-12 02:26 AM:
我说的是解压后是47KB(原程序是106KB)
所以我奇怪。



也 許 將 沒 用 的 東 西 去 掉 了 , 據 說 compiler 會 加 入 許 多 沒 用 的 東 西
會 Assembly 的 人 要 去 掉 那 些 可 能 並 不 難 ...
更 何 況 他 是 高 手
上一页  13 4 5 6 7 8 913  下一页
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023