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 13:01
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question from a newbie: how do I learn to read and write batch files? View 999 Replies 4
Original Poster Posted 2004-02-26 00:00 ·  中国 山东 临沂 联通宽带城域网统一出口
初级用户
Credits 195
Posts 21
Joined 2004-02-26 00:00
22-year member
UID 18546
Gender Male
Status Offline
I haven't been using DOS for very long, and I've read quite a few articles introducing batch files, but none of them explain it in enough detail. I'd like to ask the experts here how I should study this and how to understand it. Please give me some guidance, thanks!
Floor 2 Posted 2004-02-26 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Practice is the only standard for testing truth. After you understand the functions and basic usage of some basic batch commands, try modifying some already completed batch files and see what changes before and after the modification. Then combine that with the command's own help information to better understand what the command does.
That's how I learned it.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 3 Posted 2004-02-27 00:00 ·  中国 山东 临沂 联通宽带城域网统一出口
初级用户
Credits 195
Posts 21
Joined 2004-02-26 00:00
22-year member
UID 18546
Gender Male
Status Offline
Thanks, I'll improve by working through some examples. But right now I want to know which commands can be used in batch files.
Floor 4 Posted 2004-02-27 00:00 ·  中国 上海 鹏博士宽带
高级用户
★★
zhri
Credits 665
Posts 153
Joined 2004-02-23 00:00
22-year member
UID 18241
Gender Male
Status Offline
All commands and executable files in the search path—as long as you can type them at C:\>—can be used in a bat file.

bat also has its own special commands, such as if errorlevel and so on.

......
Floor 5 Posted 2004-02-29 00:00 ·  中国 山东 临沂 联通宽带城域网统一出口
初级用户
Credits 195
Posts 21
Joined 2004-02-26 00:00
22-year member
UID 18546
Gender Male
Status Offline
I see, but I tried making a few and still feel it's rather difficult.
Forum Jump: