|
ko20010214
版主
       
积分 7294
发帖 1628
注册 2002-10-16
状态 离线
|
  『楼 主』:
发布 Wbat 快速入门 (中文版),更新中。。。
使用 LLM 解释/回答一下
在网上搜了一下,
Wbat的使用几乎没有中文教程,有的也只是英文Demo的汉化版,而不是专门的使用教程。在啃完王小云和Hnfeng的汉化演示之后,决定自己写一个快速入门。
先写了一部分,只是一些简介和命令和语法的例子,有关布局文件和批处理文件及两者的配合以后再写,写多少发多少吧。
希望对大家有用。
本来想上传到上传专区去的,没想到太慢,根本没传上去。
干脆作为附件上传到帖子中了。
下载下来解压后 在DOS窗口内运行 Study.bat 即可。直接在Windows底下双击study.bat也可以。
又试了一下,好像没有乱码啊。。。 当然被BOX遮住成半个汉字的地方那肯定是乱码的。 不过又发现一个BUG。
如果按顺序来看例子就不会有问题,如果看例子11之前没有看过例子9的话,例子11的输出就有问题。看过例子9之后再看例子11就没有问题的。
原因在于批处理study.bat 里例子9那儿对光标进行了操作。而例子11是在光标操作后再进行调试的。 如果例子11里在开头添加一条对光标进行操作的命令(wbat cursor 25 )那就不会有问题了。。。
这就充分说明了一个啥问题呢? 变量的赋值和即时释放变量有多重要!
如果有了好习惯,在每个子程序开头都给变量初始化,在结尾都给变量释放掉,(当然作为参数传递的那种变量例外),那就不会出现这种问题了。
Last edited by ko20010214 on 2008-10-18 at 03:56 ]
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 ]
此帖被 +25 点积分 点击查看详情 评分人:【 pusofalse 】 | 分数: +11 | 时间:2008-10-17 19:13 | 评分人:【 BC 】 | 分数: +4 | 时间:2008-10-17 20:26 | 评分人:【 lianjiang2004 】 | 分数: +6 | 时间:2008-10-20 16:31 | 评分人:【 Jneny 】 | 分数: +2 | 时间:2009-4-18 05:58 | 评分人:【 sl543001 】 | 分数: +2 | 时间:2010-1-25 19:39 |
|
附件
1: wbat-c.rar (2008-10-17 00:38, 238.19 KiB, 下载附件所需积分 1 点
,下载次数: 663)
|

ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
|
|
2008-10-17 00:04 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
|
2008-10-17 19:03 |
|
|
pusofalse
银牌会员
    
积分 1604
发帖 646
注册 2008-4-13
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
好东西,顶!
|

心绪平和,眼藏静谧,无比安稳的火... Purification of soul...Just a false...^_^ |
|
2008-10-17 19:13 |
|
|
BC
中级用户
  
积分 338
发帖 175
注册 2007-10-21
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Windows底下双击study.bat也可以
貌似有点乱码,一会试试,强大!
Under Windows, you can also double-click study.bat. It seems a bit garbled. I'll try it later. It's powerful!
|

C:\
C:\Del BC |
|
2008-10-17 20:25 |
|
|
szywangwei
新手上路

积分 8
发帖 4
注册 2008-8-5
状态 离线
|
|
2008-10-18 00:45 |
|
|
523066680
银牌会员
     SuperCleaner
积分 2362
发帖 1133
注册 2008-2-2
状态 离线
|
|
2008-10-18 16:13 |
|
|
radem
高级用户
    CMD感染者
积分 691
发帖 383
注册 2008-5-23
状态 离线
|
|
2008-10-18 22:22 |
|
|
kookycy
初级用户
 
积分 41
发帖 32
注册 2008-10-16
状态 离线
|
|
2008-10-19 00:28 |
|
|
tempuser
高级用户
   
积分 547
发帖 261
注册 2006-4-15
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
谢谢,休假了好久没来了,一来就看到这么个好东西,尽管还不知道它是什么,嘿嘿!期望继续......
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...
|
|
2008-10-20 14:57 |
|
|
dslz666
中级用户
  
积分 233
发帖 117
注册 2007-11-28
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
前些时间忙,没空来看看,这次一上来就见好东西,谢谢了
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.
|
|
2008-10-20 18:20 |
|
|
xzyx
初级用户
 
积分 50
发帖 19
注册 2008-2-9
状态 离线
|
|
2008-10-20 23:16 |
|
|
ko20010214
版主
       
积分 7294
发帖 1628
注册 2002-10-16
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
不错不错,我到那个论坛里下载了那个教程
写得非常不错,比较全面,涉及到各种批处理
有DOS下的,还有Windows下的
作者对批处理的掌握比我厉害多了,
俺是用到什么的时候就学什么,
不懂就临时找资料,呵呵
这个教程可以收藏。
教程里的EXE加了20天的期限,也就是说它会判断20天后就要你输入密码才能打开了。
密码是 heroofbbs.verybat.cn
而不是它所说的
heroofbbs.verybat.org
这介是我自己试出来的。哈。
没事的时候可以翻一翻英雄写的教程,真不错。推荐!!
俺自己那篇,
主要是想写点初级的,
适合我这样的速食主义的人的。
有兴趣就写下去,没兴趣就算了,
反正有更好的教程在。
只要你愿意啃。
狂晕中。。。那个破上传系统我上传了N遍都没上传上来!!!
本想把这个教程上传上来的。
省得大家为了下载它又要去注册一个新论坛
说不定不小心就成了它的超级潜水员。
可惜啊,传不上去。
只好在帖子里作为附件上传他的CHM版本
Last edited by ko20010214 on 2008-10-21 at 14:22 ]
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 ]
附件
1: 批处理教程[英雄出品].CHM (2008-10-21 14:21, 127.29 KiB, 下载附件所需积分 1 点
,下载次数: 166)
|

ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
|
|
2008-10-21 11:49 |
|
|
zhenxin
初级用户
 
积分 83
发帖 38
注册 2007-1-17
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Thanks for your sharing
Thanks for your sharing
|
|
2008-11-1 16:42 |
|
|
lihaixia
新手上路

积分 12
发帖 8
注册 2008-12-24
状态 离线
|
『第 14 楼』:
想求个自动份区源代码
使用 LLM 解释/回答一下
利用GDISK来做个自动分区,类似于傻瓜式的,在这里想求该功能的批处理代码,请高手们赐教呀
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.
|
|
2008-12-27 11:42 |
|
|
yjd
初级用户
 
积分 156
发帖 76
注册 2007-8-20
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
12楼的东西怎么下下来没一个能打开的全是空白页-_-!!!
The things on the 12th floor, why are none of them openable, all are blank pages -_-!!!
|
|
2009-1-24 21:29 |
|