中国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 06:04
47,812 topics / 349,914 posts / today 0 new / 48,268 members
DOS启动盘 & LOGO技术 (启动盘室) » Help----How to make a batch script that lets Ghost back up the image to the last partition
Printable Version  6,818 / 28
Floor1 yhzlt2008 Posted 2007-01-18 04:52
新手上路 Posts 9 Credits 19
I'm a newbie and don't know how to write? Which kind-hearted expert can help me ah!!!
Floor2 lotus516 Posted 2007-01-18 05:04
高级用户 Posts 246 Credits 551
Floor3 yhzlt2008 Posted 2007-01-18 05:21
新手上路 Posts 9 Credits 19
Originally posted by lotus516 at 2007-1-17 04:04 PM:
Why don't you search?

Can't find it, there isn't any?
Floor4 lianjiang2004 Posted 2007-01-18 08:43
金牌会员 Posts 1,884 Credits 3,946
You can also download a one - key Ghost and see how others write it.
Floor5 chen463 Posted 2007-01-20 06:30
初级用户 Posts 22 Credits 41
ghost -clone,mode=pdump,src=1:1,dst=1:*\xxx.gho -sure -fx

...
1:*→The first partition of the first hard disk, for example, the third partition is 1:3, and the fourth partition is 1:4
Floor6 lhteee Posted 2007-01-21 11:00
中级用户 Posts 59 Credits 223
Make a loop judgment.
Floor7 freetree Posted 2007-01-22 02:26
初级用户 Posts 9 Credits 31
ghost -clone,mode=pdump,src=1:1,dst=1:*\xxx.gho -span -z9 -split=680 -sure
Floor8 lianjiang2004 Posted 2007-01-22 08:56
金牌会员 Posts 1,884 Credits 3,946
The key is whether this * is for your own computer, a specific number, or a general, non - fixed number. If it's fixed, it's easy. If it's not fixed, then you need to determine it through a batch process and then assign a value.
dst=1:*\xxx.gho
Floor9 yhzlt2008 Posted 2007-01-22 23:25
新手上路 Posts 9 Credits 19
Originally posted by lianjiang2004 at 2007-1-21 07:56 PM:
The key is whether this * is a specific number of its own machine or a general, non-fixed number.
If it is fixed, it's easy. If it's not fixed, you need to determine and assign it through a batch processing.
dst=1:*\xxx.gho

:PHow to write this batch processing? I just don't know how to write it, can you help me write one? :D
Floor10 lianjiang2004 Posted 2007-01-23 00:08
金牌会员 Posts 1,884 Credits 3,946
Originally posted by yhzlt2008 at 2007-1-22 23:25:

:PHow to write this batch processing? I just don't know how to write it, can you help me write one? :D

You can download my gghost and take a look at the batch processing inside for reference.
Floor11 yhzlt2008 Posted 2007-01-26 08:28
新手上路 Posts 9 Credits 19
The batch processing in your GGhost upstairs is too complicated. I can't understand it at my current level! Can you give a simpler one?
Floor12 lizaoyou Posted 2007-01-27 08:36
中级用户 Posts 85 Credits 210 From 广东广州
The key is whether this * is a specific number for one's own machine or a general, non-fixed number.
If it's fixed, it's easy. If not fixed, it needs to be determined and assigned through a batch script.
dst=1:*\xxx.gho


Task: Return the value of *, for example, if the last partition is E, return 3; if it's F, return 4, and so on.

Here is an example using the batch processing enhancement tool FINDCD.EXE, STRINGS.COM (available for download in the forum):

@echo off
set cdrom1=
findcd /s>nul
if not "%cdrom1%"=="" strings last=left %cdrom1%,1,1
if not "%cdrom1%"=="" goto ston
for %%n in (C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do if exist %%n:\nul set last=%%n
:ston
strings last=val %last%
strings last=sub %last%,67
if "%cdrom1%"=="" strings last=add %last%,1
echo %last%
set cdrom=
set cdrom1=
(Test environment: MS-DOS 7.10)
Floor13 lianjiang2004 Posted 2007-01-27 09:14
金牌会员 Posts 1,884 Credits 3,946
Can NTFS partitions be handled?
Floor14 lizaoyou Posted 2007-01-27 09:55
中级用户 Posts 85 Credits 210 From 广东广州
Originally posted by lianjiang2004 at 2007-1-26 08:14 PM:

Can NTFS partitions handle this?


NTFS partitions are not supported by DOS, unless third-party drivers such as ntfsdos, ifs, etc. are loaded.
Floor15 lianjiang2004 Posted 2007-01-27 10:26
金牌会员 Posts 1,884 Credits 3,946
After loading, the correspondence between drive letters and partitions also needs to be handled.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023