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 05:43
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » xzl, the layout is messed up, what should I do? View 1,752 Replies 6
Original Poster Posted 2006-08-12 08:52 ·  中国 河南 商丘 中移铁通
初级用户
Credits 74
Posts 21
Joined 2006-08-09 23:15
19-year member
UID 60186
Status Offline
After using xzl, the layout is messed up. The content on the right runs to the left, and the part to the left of the cursor is not visible.

[ Last edited by hujintao on 2006-8-13 at 12:17 ]
Floor 2 Posted 2006-08-14 13:12 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
It is best to post the content of the .BAT!
Tip: The number of Chinese characters in each line should not exceed 40
Floor 3 Posted 2006-08-14 13:47 ·  中国 河南 商丘 中移铁通
初级用户
Credits 74
Posts 21
Joined 2006-08-09 23:15
19-year member
UID 60186
Status Offline
When pasted, it looks like this, and in Notepad it is neat

:fres0
@echo off
smartdrv
xmsdsk 2048 /y
findramd
copy a:\format.com %RAMDRIVE%
copy a:\ghost.exe %RAMDRIVE%
tw.exe /np
cls
@echo.
@ECHO.
@ECHO.
@ECHO.
@ECHO.
@ECHO.
@ECHO.
@ECHO * * * * * * * * * * * * * * * * * * * * * *
@echo * *
@echo * Use ×× Restore Disk *
@ECHO * *
@echo * Restore Your Clean C Drive *
@ECHO * *
@echo * This bootable disk can ~ format C drive ~ and restore the system *
@ECHO * *
@echo * Please confirm that the g:\bak\sys.gho backup file exists *
@ECHO * *
@ECHO * * * * * * * * * * * * * * * * * * * * * *
@ECHO.
@ECHO.
@echo Produced by ×××
@echo QQ ×××××× @echo All rights reserved. No reproduction without permission
@ECHO.
@echo Formatting is in progress, system restoration will be done later...
%RAMDRIVE%
format c: /q /autotest
ghost.exe -clone,mode=pload,src=1:5\bak\sys.gho,dst=1:1 -sure -fx -rb
goto end

[ Last edited by hujintao on 2006-8-14 at 13:51 ]
Floor 4 Posted 2006-08-14 16:20 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
:FRES0
@ECHO OFF
SMARTDRV
XMSDSK 2048 /Y
FINDRAMD
COPY A:\FORMAT.COM %RAMDRIVE%
COPY A:\GHOST.EXE %RAMDRIVE%
TW.EXE /NP
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO * * * * * * * * * * * * * * * * * * * * * *
ECHO * *
ECHO * Use ×× Restore Disk *
ECHO * *
ECHO * Restore Your Clean C Drive *
ECHO * *
ECHO * This boot disk can ~ format C drive ~ and restore system *
ECHO * *
ECHO * Please confirm that the G:\BAK\SYS.GHO backup file exists *
ECHO * *
ECHO * * * * * * * * * * * * * * * * * * * * * *
ECHO.
ECHO.
ECHO Produced by ×××
ECHO QQ ××××××
ECHO All rights reserved. No reproduction without permission
ECHO.
ECHO Formatting now, restoring system later...
%RAMDRIVE%
FORMAT C: /Q /AUTOTEST
TW /Q
ghost.exe -clone,mode=pload,src=1:5\bak\sys.gho,dst=1:1 -sure -fx -rb
GOTO END

You are using Tianhui Chinese system, not Pocket Dragon! Also, the prior formatting of ghost is redundant, and there are 2 very, very improper points!!!
1: If the system drive disk format is NTFS format, at this time formatting user data with FORMAT C: /Q /AUTOTEST will get you in trouble!
2: Excluding the assumption in 1 that the C drive is FAT32, after formatting, if ghost fails, the original system won't boot up either, because 1:1 is a reserved partition on some brand computers, and 1:2 is the system partition.

[ Last edited by fastslz on 2006-8-14 at 16:24 ]
Floor 5 Posted 2006-08-14 18:13 ·  中国 河南 商丘 中移铁通
初级用户
Credits 74
Posts 21
Joined 2006-08-09 23:15
19-year member
UID 60186
Status Offline
Formatting before ghosting is because my friend encountered several times where after a direct restore, there were continuous reboots and still infections, while after formatting and then restoring, it was fine. So I want to make such a one-click recovery. Mainly for two friends who are both noobs (can't even type DOS commands, I'm still considered a pro in their eyes :)). Their C drives are both fat32. The tw in the autoexec.bat above was changed later, using Tw is fine, but it's a pity it's too large
Floor 6 Posted 2006-08-14 19:16 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
I didn't pay attention above that the parameters of ghost.exe -clone,mode=pload,src=1:5\bak\sys.gho,dst=1:1 -sure -fx -rb are wrong.
ghost.exe -clone,mode=pload,src=1:5:\bak\sys.gho,dst=1:1 -sure -rb

As for formatting before ghost, it's because my friend has encountered several situations where after direct restoration, there were continuous restarts and still infections. It has nothing to do with me and format, besides it's /Q quick format.
In addition, it's explained that we are cautious about format when writing batch processing. As you said, it's not excluded that your two friends used this batch processing for their friends.
Floor 7 Posted 2006-08-14 20:06 ·  中国 河南 商丘 中移铁通
初级用户
Credits 74
Posts 21
Joined 2006-08-09 23:15
19-year member
UID 60186
Status Offline
The ghost parameter is written by referring to others. I also think -fx is redundant, but it doesn't affect the use.
I have indeed encountered many times the situation where there are still viruses or problems when directly ghost restoring. Every time, it's fine after formatting. I don't know how to explain it. Thinking of the previous situation where I restored to the entire hard disk and recovered the partition table with diskgen and all the data was there, I think stubborn viruses may still remain on the hard disk.
It seems to be off the topic.
Forum Jump: