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-24 23:27
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » Chinese prompts for FORMAT View 3,968 Replies 35
Original Poster Posted 2003-07-06 00:00 ·  中国 湖南 湘潭 电信
高级用户
★★
Credits 871
Posts 269
Joined 2003-07-02 00:00
22-year member
UID 6298
Gender Male
Status Offline
Moderator:

Under DOS 8.0, the higher-version FORMAT.COM gives no information prompts and just runs directly.
I want to add Chinese prompts—how can I do it without errors? Thanks!!!
Floor 2 Posted 2003-07-06 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
Why not just use the moderator's DOS7.10!
As for if you insist on localizing it, that's very simple too!
Write a batch file!
@echo off
format %1 %2 %3 %4 %5 %6 %7 %8 %9
if "%1"=="?" @ echo (whatever you want to write)
That'll do!
Floor 3 Posted 2003-07-06 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Hehe... if you say it like that, anyone who can understand it wouldn't even ask you.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 4 Posted 2003-07-06 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
So did you understand it or not!
Floor 5 Posted 2003-07-06 00:00 ·  中国 湖北 随州 电信
元老会员
★★★
Credits 1,987
Posts 632
Joined 2002-10-27 00:00
23-year member
UID 73
Gender Male
Status Offline
Just take a look at the batch files on my boot disk.
http://dos.e-stone.cn/dosbbs
uploadImages/200311161145850422.swf
Floor 6 Posted 2003-07-06 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Using DOS 8.0 to make a boot disk really isn't good. We have related discussions in the "DOS Boot Disk" section, and there was already a conclusion long ago.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2003-07-06 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
The super moderator is right!
Floor 8 Posted 2003-07-07 00:00 ·  中国 湖南 湘潭 电信
高级用户
★★
Credits 871
Posts 269
Joined 2003-07-02 00:00
22-year member
UID 6298
Gender Male
Status Offline
"If you want to localize it, that's very simple too!
Write a batch file!
@echo off
format %1 %2 %3 %4 %5 %6 %7 %8 %9
if "%1"=="?" @ echo (whatever you want to write)
That'll do!"
For example:
FORMAT A:
if "%1"==A:
echo. Do you really want to format the disk?
echo. All data on the disk will be lost!
echo. Continue?
echo. Press "Y" to format the disk
echo. Press "N" to exit the format command
choice.com
Would this work?
Floor 9 Posted 2003-07-08 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
It should work, right!
Floor 10 Posted 2003-07-08 00:00 ·  中国 湖南 湘潭 电信
高级用户
★★
Credits 871
Posts 269
Joined 2003-07-02 00:00
22-year member
UID 6298
Gender Male
Status Offline
Still no good
Can you write a batch file?
Floor 11 Posted 2003-07-08 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
Why not just use Tianhui's Chinese localization patch for Chinese text!
It's only a bit over 100kB! Doesn't that localize most commands!
If it were me, I'd just localize it directly with edit2!
If you really want it, I'll give it to you next week!

Also, you really are foolish if you write
format %1 %2 %3 %4 %5 %6 %7 %8 %9
You need to rename the original format to something else, like fo
Then the above part should be written as
fo %1 %2 %3 %4 %5 %6 %7 %8 %9
Otherwise when you type format,
of course it will still execute the original format.com file!
Not the format.bat file!
Floor 12 Posted 2003-07-08 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
Also, the " " around A cannot be omitted!
Floor 13 Posted 2003-07-08 00:00 ·  中国 湖南 湘潭 电信
高级用户
★★
Credits 871
Posts 269
Joined 2003-07-02 00:00
22-year member
UID 6298
Gender Male
Status Offline
Look:
@echo off
MAT %1 %2 %3 %4 %5 %6 %7 %8 %9
IF "%1"=="A" "B" "C" "D" "E" "F" "G" "H" "I" ...
@echo. Do you really want to format the disk?
@echo. All data on the disk will be lost!
@echo. Continue?
@echo. Press “Y” to format the disk
@echo. Press “N” to exit the format command
choice
@if errorlevel 1 if not errorlevel 2 goto gsh
@if errorlevel 2 if not errorlevel 3 goto end

gsh
MAT %1 %2 %3 %4 %5 %6 %7 %8 %9

end
quit

Will this do?
Floor 14 Posted 2003-07-08 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
First try it in the Windows XP command prompt interface!
If it doesn't work, then come ask me again!
Floor 15 Posted 2003-07-08 00:00 ·  中国 湖南 湘潭 电信
高级用户
★★
Credits 871
Posts 269
Joined 2003-07-02 00:00
22-year member
UID 6298
Gender Male
Status Offline
I tried it under DOS
FORMAT A:
But it didn't show
Do you really want to format the disk?
All data on the disk will be lost!
Continue?
Press “Y” to format the disk
Press “N” to exit the format command
Instead it showed English
Press ENTER to read disk...
When I exited it showed the BAT contents
Forum Jump: