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-13 01:31
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question about a batch file??? View 658 Replies 3
Original Poster Posted 2003-11-01 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 189
Posts 27
Joined 2003-03-14 00:00
23-year member
UID 1131
Gender Male
Status Offline
Question about a batch file???

Why is it that after executing the following batch file,

echo @ECHO OFF >tw.bat
echo TW %1 %2 %3 %4 %5 %6 %7 %8 %9 >>tw.bat
echo lh KEY PY WB>nul >>tw.bat
echo echo. >>tw.bat

the second line in the generated file is TW rather than TW %1 %2 %3 %4 %5 %6 %7 %8 %9,
and this % symbol is gone? How should I handle it to achieve what I want?

Please teach me!!!

Thanks.
Floor 2 Posted 2003-11-01 00:00 ·  中国 湖北 武汉 汉阳区 电信
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
23-year member
UID 7953
Gender Male
Status Offline
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 3 Posted 2003-11-01 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 189
Posts 27
Joined 2003-03-14 00:00
23-year member
UID 1131
Gender Male
Status Offline
Thanks, I'll go try it.
Floor 4 Posted 2003-12-06 00:00 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
23-year member
UID 7105
Gender Male
Status Offline
I tried it under XP, and there was no problem.
Forum Jump: