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-22 18:20
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question about a batch file, please help take a look.. View 957 Replies 1
Original Poster Posted 2007-04-26 03:36 ·  中国 浙江 湖州 电信
初级用户
Credits 62
Posts 32
Joined 2006-11-08 11:46
19-year member
UID 70030
Gender Male
Status Offline
I wrote a batch file, as follows:

Now the problem is, why doesn't the line echo timeout=2>>boot.ini get written? If I add a space after the 2, then it can be written. What's the reason for that?

cd /d c:\

attrib -a -s -h boot.ini

echo [boot loader]>boot.ini
echo timeout=2>>boot.ini
echo default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS>>boot.ini
echo [operating systems]>>boot.ini
echo multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect>>boot.ini
echo C:\mxldr=MaxDOS v5.8s>>boot.ini

attrib +a +s +h boot.ini
Floor 2 Posted 2007-12-02 18:26 ·  中国 山西 移动
初级用户
Credits 32
Posts 16
Joined 2007-11-28 21:00
18-year member
UID 104093
Gender Male
Status Offline
Just make sure to add a space when entering it.
Forum Jump: