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-27 14:56
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Publish "Wbat Quick Start Guide (Chinese Version)", updating... View 8,247 Replies 57
Original Poster Posted 2008-10-17 00:04 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
I searched online, and there are almost no Chinese tutorials on the use of Wbat. The ones available are just Chinese versions of English demos, not dedicated usage tutorials. After struggling through the Chinese汉化 demonstrations by Wang Xiaoyun and Hnfeng, I decided to write a quick start guide myself.

I wrote part of it first, just some introductions and examples of commands and syntax. I'll write about layout files, batch files, and their coordination later, and I'll post as much as I write.

I hope it's useful to everyone.

Originally, I wanted to upload it to the upload section, but it was too slow and didn't go through at all.
I simply uploaded it as an attachment in the post.
After downloading and extracting, run Study.bat in the DOS window. You can also double-click study.bat directly under Windows.

I tried again, and there seems to be no garbled code... Of course, the parts covered by the BOX and appearing as half-Chinese characters are definitely garbled. But I found another bug.
If you follow the order to view the examples, there will be no problem. If you view example 11 without having seen example 9 before, the output of example 11 will be problematic. After having seen example 9, viewing example 11 will be fine.
The reason is that in the batch study.bat, the cursor is operated at example 9. And example 11 is debugging after the cursor operation. If a command to operate the cursor (wbat cursor 25) is added at the beginning of example 11, there will be no problem...
This fully illustrates what issue? The importance of variable assignment and immediate variable release!
If you have a good habit, initialize variables at the beginning of each subroutine and release variables at the end (except for variables passed as parameters), then this kind of problem won't occur.

[ Last edited by ko20010214 on 2008-10-18 at 03:56 ]
Recent Ratings for This Post ( 5 in total) Click for details
RaterScoreTime
pusofalse +11 2008-10-17 19:13
BC +4 2008-10-17 20:26
lianjiang2004 +6 2008-10-20 16:31
Jneny +2 2009-04-18 05:58
sl543001 +2 2010-01-25 19:39
Attachments
wbat-c.rar (238.19 KiB, Credits to download 1 pts, Downloads: 663)
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 2 Posted 2008-10-17 19:03 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Looking forward...
Windows 一键还原
http://www.yjhy.com
Floor 3 Posted 2008-10-17 19:13 ·  中国 山东 淄博 联通
银牌会员
★★★
Credits 1,604
Posts 646
Joined 2008-04-13 23:39
18-year member
UID 115804
Gender Male
Status Offline
心绪平和,眼藏静谧,无比安稳的火... Purification of soul...Just a false...^_^
Floor 4 Posted 2008-10-17 20:25 ·  中国 广东 江门 电信
中级用户
★★
Credits 338
Posts 175
Joined 2007-10-21 15:30
18-year member
UID 100351
Gender Male
Status Offline
Under Windows, you can also double-click study.bat. It seems a bit garbled. I'll try it later. It's powerful!
Floor 5 Posted 2008-10-18 00:45 ·  中国 陕西 咸阳 联通
新手上路
Credits 8
Posts 4
Joined 2008-08-05 22:48
17-year member
UID 122775
Gender Male
Status Offline
Okay, learned it.
Floor 6 Posted 2008-10-18 16:13 ·  中国 广东 揭阳 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
The moderator posts a thread, I will give a thumbs - up.
Floor 7 Posted 2008-10-18 22:22 ·  中国 广东 清远 电信
高级用户
★★★
CMD感染者
Credits 691
Posts 383
Joined 2008-05-23 00:38
18-year member
UID 119451
Gender Male
Status Offline
Floor 8 Posted 2008-10-19 00:28 ·  中国 江西 联通
初级用户
Credits 41
Posts 32
Joined 2008-10-16 00:11
17-year member
UID 128490
Gender Male
Status Offline
Floor 9 Posted 2008-10-20 14:57 ·  中国 黑龙江 大庆 大庆中基石油通信建设有限公司
高级用户
★★
Credits 547
Posts 261
Joined 2006-04-15 16:50
20-year member
UID 53887
Status Offline
Thanks, I've been on vacation for a long time and haven't been here for a while. As soon as I came, I saw such a good thing. Although I still don't know what it is, heh heh! Looking forward to continuing...
Floor 10 Posted 2008-10-20 18:20 ·  中国 广东 广州 白云区 电信
中级用户
★★
Credits 233
Posts 117
Joined 2007-11-28 02:38
18-year member
UID 104005
Gender Male
Status Offline
I was busy some time ago and didn't have time to come and take a look. This time as soon as I came up, I saw something good. Thanks.
Floor 11 Posted 2008-10-20 23:16 ·  中国 北京 大兴区 联通
初级用户
Credits 50
Posts 19
Joined 2008-02-09 22:04
18-year member
UID 110396
Gender Male
Status Offline
There has long been http://bbs.verybat.org/thread-8276-1-1.html
This tutorial contains a very detailed wbat Chinese tutorial
Floor 12 Posted 2008-10-21 11:49 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
Not bad, not bad. I downloaded that tutorial in that forum.
It's written very well, relatively comprehensive, involving various batch processing.
There are those under DOS and those under Windows.
The author's mastery of batch processing is much better than mine.
I only learn what I use when I need it.
I look for materials temporarily when I don't understand, heh heh.
This tutorial can be collected.

The EXE in the tutorial has a 20-day expiration period, that is to say, it will require you to enter a password to open it after 20 days.
The password is heroofbbs.verybat.cn
Not the one it said
heroofbbs.verybat.org
This is what I found out by myself. Ha.

You can flip through the tutorials written by Hero when you have nothing to do, it's really good. Recommended!
My own one,
Mainly want to write something basic,
Suitable for people like me who are of the fast-food ideology.
Write it if interested, forget it if not interested,
Anyway, there are better tutorials available.
As long as you are willing to study.


Extremely dizzy... That broken upload system I uploaded it N times and didn't upload it! ! !
I originally wanted to upload this tutorial.
To save everyone from having to register a new forum to download it.
Maybe accidentally become its super lurker.

可惜啊,传不上去。
Had to upload its CHM version as an attachment in the post.

[ Last edited by ko20010214 on 2008-10-21 at 14:22 ]
Attachments
批处理教程[英雄出品].CHM (127.29 KiB, Credits to download 1 pts, Downloads: 166)
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 13 Posted 2008-11-01 16:42 ·  中国 上海 浦东新区 电信
初级用户
Credits 83
Posts 38
Joined 2007-01-17 04:38
19-year member
UID 76759
Gender Male
Status Offline
Thanks for your sharing
Floor 14 Posted 2008-12-27 11:42 ·  中国 内蒙古 呼和浩特 电信
新手上路
Credits 12
Posts 8
Joined 2008-12-24 13:19
17-year member
UID 134802
Gender Female
Status Offline
Use GDISK to make an automatic partition, similar to a fool - proof one. Here, I want to ask for the batch code for this function. Please, experts, give me your advice.
Floor 15 Posted 2009-01-24 21:29 ·  中国 福建 厦门 电信
初级用户
★★
Credits 156
Posts 76
Joined 2007-08-20 11:52
18-year member
UID 95399
Gender Male
Status Offline
The things on the 12th floor, why are none of them openable, all are blank pages -_-!!!
Forum Jump: