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-08-10 05:52
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Closed]. How to make a batch processing for GHOST recovery after renaming .gho? View 2,313 Replies 26
Original Poster Posted 2008-10-22 14:12 ·  中国 江西 九江 电信
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
How to make a batch process to let GHOST restore after renaming .gho For example Rename .gho to .bak Directly use Ghost-clone,mode=pload,src=d:\ghost\sysbak.bak,dst=1:1 /sure /rb It seems not okay.

[ Last edited by kookycy on 2008-10-22 at 20:14 ]
Floor 2 Posted 2008-10-22 14:17 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
@echo off
ren d:\ghost\sysbak.bak sysbak.gho
Ghost-clone,mode=pload,src=d:\ghost\sysbak.gho,dst=1:1 /sure /rb
Floor 3 Posted 2008-10-22 14:20 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Renaming doesn't affect usage, no problems at all.
Windows 一键还原
http://www.yjhy.com
Floor 4 Posted 2008-10-22 14:20 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Of course, the premise is that the command is not written incorrectly.
Windows 一键还原
http://www.yjhy.com
Floor 5 Posted 2008-10-22 14:33 ·  中国 江西 九江 电信
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
This should not be able to use the REN command under NTFS.

I mean when the disk is NTFS, usually it can't be seen under DOS.. Unless NTFSDOS is loaded

[ Last edited by kookycy on 2008-10-22 at 16:00 ]
Floor 6 Posted 2008-10-22 14:36 ·  中国 江西 九江 电信
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
Originally posted by HAT at 2008-10-22 14:17:
@echo off
ren d:\ghost\sysbak.bak sysbak.gho
Ghost-clone,mode=pload,src=d:\ghost\sysbak.gho,dst=1:1 /sure /rb



Just add a renaming command in the batch?

GHOST doesn't have such a parameter, right.

Thanks.
Floor 7 Posted 2008-10-22 14:59 ·  中国 上海 电信
高级用户
★★★
Credits 916
Posts 377
Joined 2004-03-08 00:00
22-year member
UID 19523
Gender Male
Status Offline
Ghost certainly supports renaming. At least renaming it to bak.gh is fine.

Ghost -clone,mode=pload,src=1:6\ghost\system1.gh:1,dst=1:1 -sure -rb
1:6 means the 6th partition of the first hard disk.
system1.gh:1 means if it is the backup data of the first partition in the full disk backup, it doesn't matter if it's a single partition.

But in the previous v8.3 v10.0.x series, there were differences in the identification of IDE dual hard disks. Forgotten. It seems that v8.3 identifies according to the BIOS hard disk boot sequence. And v10.0.x identifies according to the master-slave arrangement of the data cable. So when using dual hard disks, it is still advisable to be cautious with one-key restore tools unless you know what you are doing.
Floor 8 Posted 2008-10-22 15:02 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Who told you that NTFS doesn't support the ren command?
Floor 9 Posted 2008-10-22 15:22 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
In my GGhost one-click recovery, it's renamed by default, and I haven't heard of any problems.
For example:
ghost -clone,mode=pload,src="1.4:\gghost..\sys.ggh:1",dst=1:1 -fx -sure -fro

The owner can't use it because the command is wrong, not because of the extension problem.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
kookycy +2 2008-10-22 17:15
Windows 一键还原
http://www.yjhy.com
Floor 10 Posted 2008-10-22 15:39 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Originally posted by HAT at 2008-10-22 15:02:
Who told you that NTFS doesn't support the ren command?


His meaning is that NTFS is read-only under DOS and cannot be renamed.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 11 Posted 2008-10-22 15:44 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by yishanju at 2008-10-22 15:39:

He means that NTFS is read-only under DOS and cannot be renamed
If it can't be renamed, it's just that the NTFS driver used is incorrect. Just change to one that supports write. The problem is, there's no need to rename at all. Hehe.
Windows 一键还原
http://www.yjhy.com
Floor 12 Posted 2008-10-22 15:58 ·  中国 江西 九江 电信
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
Originally posted by HAT at 2008-10-22 15:02:
Who told you that NTFS doesn't support the ren command?


Dude, you got it wrong. Although I'm very green, I'm not that weak. NTFS definitely supports REN. It just can't change the name.

[ Last edited by kookycy on 2008-10-22 at 16:06 ]
Floor 13 Posted 2008-10-22 17:16 ·  中国 江西 九江 电信
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
Originally posted by lianjiang2004 at 2008-10-20 15:22:
In my GGhost one-click recovery, it is renamed by default, and I haven't heard of any problems.
For example:
ghost -clone,mode=pload,src="1.4:\gghost..\sys.ggh:1",dst=1:1 -fx -sure -fro

The landlord can't use it,...



Thanks... Your command is correct

Why is there no such statement as 1.4: in the GHOST tutorial?
Floor 14 Posted 2008-10-22 17:21 ·  中国 江西 九江 电信
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
Oh, dizzy... I tried 1:4 again and it works..

I also added GHO:1 before. Did I write the format wrong at that time.. - -
Floor 15 Posted 2008-10-22 17:25 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
The new version format is 1.4, and it was 1:4 before, but both the 1.4 format and the 1:4 format are supported.
Windows 一键还原
http://www.yjhy.com
Forum Jump: