中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » 请高手帮我修改下备份文件程序...谢谢!!!!!
作者:
标题: 请高手帮我修改下备份文件程序...谢谢!!!!! 上一主题 | 下一主题
lianjiang2004
金牌会员





积分 3946
发帖 1884
注册 2006-1-20
状态 离线
『第 46 楼』:  

我用的就是gghost,可从我网盘下载。
然后40楼的代码,分别拷贝到3个文件,添加到img中,启动后运行1.bat即可进行测试。



Windows 一键还原
http://www.yjhy.com
2007-4-26 01:00
查看资料  发短消息  网志   编辑帖子  回复  引用回复
zch1366
中级用户





积分 326
发帖 148
注册 2005-12-16
状态 离线
『第 47 楼』:  

你的作品写的很好..值的珍藏!
在你作品测试成功了....谢谢!!!!!!
为何复制到c:\盘下就不成功...不停从复搜索文件?

GHSTSTAT文件
Date : Wed Apr 25 12:00:01 2007
Error Number: (0)
Message: Stats Dump
Version: 11.0.0.1502 (Dec 4 2006, Build=1502)
OS Version: DOS v7.10
Command line arguments: -dd
Active Switches :
AutoName
PathName :
DumpFile :
DumpPos : 0
FlagImplode : 0
FlagExplode : 0

Operation Details :
Total size.........0
MB copied..........0
MB remaining.......0
Percent complete...0%
Speed..............0 MB/min
Time elapsed.......0:00
Time remaining.....0:00

Program Call Stack
sub_main
main

Call Stack
0x0039623c
0x0009cbd1
0x0000307e
0x00004ce1
0x00003f2f
0x0039f468
End Call Stack


Start heap available: 512557056
Cur heap available: 512360448
Total Memory: 520028160

Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392

Fat details:

NTFS details:
----------------

NTFS Global Flags:
----------------
contiguousWrite=1 forceDiskClusterMapping=0
inhibitCHKDSK=1 ignoreBadLog=0 ignoreCHKDSKBit=0
enable_cache=0 xfrbuflen=0
last_attr_type = 0
loadExact = 0
----------------

Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......19743822
estimatedUsedCount.....0
numPartitions..............2
Version............0

# Ord Boot Id Ext First Num Last Used NTFS
0 0 1 b No 63 8193087 8193150 0 No
1 1 0 c No 8193150 11550735 19743885 0 No

Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......0
estimatedUsedCount.....0
numPartitions..............0
Version............0

# Ord Boot Id Ext First Num Last Used NTFS

Fixed Drives

Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0

Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0

IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0

IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 98

Floppy Drives

Drive 0
Int 13h (Active)
Total Sectors 13824
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 1

Extended Int 13h
Total Sectors 13788
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 0

Remote Drives
AsyncIo : 0
Image Devices

Key 1.1:
Key 1:1
Key C:
Path C:
Desc C: 1.1:
Type FAT
Disk 0
Offset 63

Key 1.2:
Key 1:2
Key D:
Path D:
Desc D: 1.2:
Type FAT
Disk 0
Offset 8193150

Key A:
Path A:
Desc A:
Type Floppy

Key X:
Path X:
Desc X:
Type Disk

Key @CD-R1
Path @CD-R1
Desc @CD-R1 SONY CD-RW CRX300E
Type DVD


ConvMemoryAllocationFactoryDpmi diagnostic...
=============================================

Conventional Memory
Initial Conventional Memory Size = 435184
Current Conventional Memory Size = 360912

Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392


DiskManager diagnostic...
=========================

Fixed Drives

Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0

Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0

IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0

IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 98

Floppy Drives

Drive 0
Int 13h (Active)
Total Sectors 13824
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 1

Extended Int 13h
Total Sectors 13788
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 0

The following devices do not use an IRQ:
(0x00, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1039, Device: 0x0648
(0x00, 0x01, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/PCI
Vendor: 0x1039, Device: 0x0001
(0x00, 0x02, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/ISA
Vendor: 0x1039, Device: 0x0963, RoutePINS: 0x41, 0x42, 0x43, 0x44,
(0x01, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Display, SubClass: VGA compatible
Vendor: 0x1039, Device: 0x0330, RoutePINS: 0x41, 0x42, 0x00, 0x00,
The following hard wire-ord devices share IRQ 11:
(0x00, 0x02, 0x05): IRQ: 0x0b, INT#: A, Link: 0x41
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x1039, Device: 0x5513, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 10:
(0x00, 0x02, 0x07): IRQ: 0x0a, INT#: C, Link: 0x43
Class: Multimedia, SubClass: Audio
Vendor: 0x1039, Device: 0x7012, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 3:
(0x00, 0x04, 0x00): IRQ: 0x03, INT#: A, Link: 0x44
Class: Network, SubClass: Ethernet
Vendor: 0x1039, Device: 0x0900, RoutePINS: 0x44, 0x00, 0x00, 0x00,
The following hard wire-ord devices share IRQ 5:
(0x00, 0x03, 0x00): IRQ: 0x05, INT#: A, Link: 0x60
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 6:
(0x00, 0x03, 0x01): IRQ: 0x06, INT#: B, Link: 0x61
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 9:
(0x00, 0x03, 0x02): IRQ: 0x09, INT#: D, Link: 0x63
Class: Serial Bus, SubClass: USB EHCI
Vendor: 0x1039, Device: 0x7002, RoutePINS: 0x60, 0x61, 0x62, 0x63,



FilesystemManager diagnostic...
===============================

Volume 1
VolumePos: 1.1:
DriveLetter: C:
Description: 3.91GB Primary Disk 0 Offset 31.50KB 3.91GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:

Volume 2
VolumePos: 1.2:
DriveLetter: D:
Description: 5.51GB Primary Disk 0 Offset 3.91GB 5.51GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:


FilesystemMounter diagnostic...
===============================


LfoFilesystemManager diagnostic...
==================================

Filesystem Index: 0
Filesystem Descriptor:
ID's:
ID Type: 2
ID: A:
DriveType: 2
No FilesystemInfo structure.
Filesystem has no VolumePtr

Filesystem Index: 1
Filesystem Descriptor:
ID's:
ID Type: 2
ID: C:
ID Type: 1
ID: 1.1:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:

Filesystem Index: 2
Filesystem Descriptor:
ID's:
ID Type: 2
ID: D:
ID Type: 1
ID: 1.2:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:

Filesystem Index: 3
Filesystem Descriptor:
ID's:
ID Type: 2
ID: X:
DriveType: 32
No FilesystemInfo structure.
Filesystem has no VolumePtr


*********************************

Last edited by zch1366 on 2007-4-26 at 01:25 AM ]

2007-4-26 01:23
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
lianjiang2004
金牌会员





积分 3946
发帖 1884
注册 2006-1-20
状态 离线
『第 48 楼』:  

对你的autoexec.bat和config.sys进行小改后,用你的img中通过测试。
----------
【config.sys】

devicehigh=ramdrive.sys /E 8192
-------------------
【autoexec.bat】

SET TEMP=%RAMD%:
SET TMP=%RAMD%:
copy *.* %RAMD%: /y >nul
%RAMD%:
1.bat

--------------------
【1.bat】

:1
ghost.exe -dd >NUL
FIND /i "1.1:" GHSTSTAT.TXT >NUL
if errorlevel 1 goto sub_a
set dot=.
goto sub_b

:sub_a
set dot=:

:sub_b
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
call lastd.bat c: d: e: f: g: h: i: j: k: l: m: n: o:

if not exist %lastd%\ghost\nul md %lastd%\ghost >nul
attrib %lastd%\ghost +h +s +r

GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%p%:%LastP%\ghost\win.gho -sure -Z3 -FX -RB
goto exit

:2
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
GHOST.EXE -CLONE,MODE=PLOAD,SRC=%p%:%LastP%\ghost\win.gho:1,DST=1:1 -sure -FX -RB
goto exit

------------------------
【ghost.bat】

:1
FIND /i "%p%:%1" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 2
rem set LastP=%p%:%1
set LastP=%1
Shift
goto 1

:2
rem del GHSTSTAT.TXT

--------------------
【lastd.bat】

:1
FIND /i "%1 1%dot%%lastp%" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 3
set Lastd=%1
if not %lastd%#==# goto 2
:3
Shift
goto 1

:2
del GHSTSTAT.TXT



Windows 一键还原
http://www.yjhy.com
2007-4-26 02:15
查看资料  发短消息  网志   编辑帖子  回复  引用回复
zch1366
中级用户





积分 326
发帖 148
注册 2005-12-16
状态 离线
『第 49 楼』:  

我试过缺少文件.....你把修改好的img文件传给我了....不好意思..麻烦你一天了...
153999855 在线等...非常感谢

2007-4-26 06:24
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
lianjiang2004
金牌会员





积分 3946
发帖 1884
注册 2006-1-20
状态 离线
『第 50 楼』:  

http://free.ys168.com/?lianjiang2007 下载你的img。



Windows 一键还原
http://www.yjhy.com
2007-4-26 08:23
查看资料  发短消息  网志   编辑帖子  回复  引用回复
zch1366
中级用户





积分 326
发帖 148
注册 2005-12-16
状态 离线
『第 51 楼』:  

非常感谢

2007-4-26 12:44
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
zch1366
中级用户





积分 326
发帖 148
注册 2005-12-16
状态 离线
『第 52 楼』:  

按照您说的,我终于成功!!!
历害,我算服了您了,懂得那么多,从您这里我学到了不少的东西,真是无以言表,只能说一声谢谢您了!

2007-4-26 12:54
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
zch1366
中级用户





积分 326
发帖 148
注册 2005-12-16
状态 离线
『第 53 楼』:  

经过小改动....以是全自动了!!!

非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!

2007-4-26 14:28
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: