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-24 13:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Object Oriented Batch Language DigestI View 36,481 Replies 56
Floor 16 Posted 2006-10-14 01:25 ·  中国 北京 朝阳区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
If using batch files with a procedural way of thinking,
you can put custom functions (sub-batch files, able to receive parameters) into a directory named Include (or something similar),

For example: you could also turn the floating-point arithmetic and a whole series of near-perfect batch files made by people like pengfei and the moderators into a function-library format, one file per function, stored in a function-specific directory.
That way, little by little, when developing in the future, you only need to call them simply :)



C:\TEMP\basic directory

2006-09-30 14:51 <DIR> .
2006-09-30 14:51 <DIR> ..
2006-09-30 14:51 <DIR> Include
2006-09-30 14:51 <DIR> Lib



Using OOP thinking is super great!!!
The OP's skills show innovative thinking!!!

At present I don't know, after part of the OP's creative work has been realized,
who will be using it, I think, will probably be:

people fairly proficient in DOS commands, proficient in writing batch files, proficient in object-oriented program development and who have really done it for some time (such as JAVA, etc.),
and then also possess a fanatical devotion to technology......
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 17 Posted 2006-10-14 01:28 ·  中国 北京 朝阳区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Without devotion and creative thinking, you can't light up the world~:)
Bump again!!!
Waiting for the OP's endless stream of good ideas~:)
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 18 Posted 2006-10-16 00:24 ·  中国 黑龙江 牡丹江 中移铁通
初级用户
Credits 71
Posts 34
Joined 2006-09-15 02:15
19-year member
UID 62611
Status Offline
Object-oriented batch files? Is that really necessary? People really need to have a correct understanding of batch files. If it gets too complex, it would be better to directly do DOS software development instead.
Support willsort's viewpoint!
Floor 19 Posted 2007-04-30 06:31 ·  中国 湖北 黄石 大冶市 电信
初级用户
Credits 21
Posts 6
Joined 2005-08-15 09:48
20-year member
UID 41666
Status Offline
If you want object orientation and also want simplicity, you can try PYTHON.
Floor 20 Posted 2007-05-04 14:53 ·  中国 广东 中山 电信
新手上路
Credits 19
Posts 10
Joined 2005-12-13 01:56
20-year member
UID 47019
Status Offline
Good idea. It has a certain degree of practical applicability.
Floor 21 Posted 2007-05-26 15:38 ·  中国 广东 深圳 电信
新手上路
Credits 4
Posts 2
Joined 2007-05-26 14:34
19-year member
UID 89372
Gender Male
Status Offline
Originally posted by redtek at 2006-10-14 01:07 AM:
Bump~~
This “@echo %dbg% off” is really interesting. When you want to debug, you don't even need to modify the batch file anymore :)
]]
Floor 22 Posted 2007-05-26 18:53 ·  中国 海南 海口 移动
初级用户
Credits 26
Posts 12
Joined 2007-05-25 17:03
19-year member
UID 89286
Gender Male
Status Offline
Thanks for sharing
Floor 23 Posted 2007-06-02 23:13 ·  中国 上海 嘉定区 电信
新手上路
Credits 2
Posts 1
Joined 2007-06-02 15:52
19-year member
UID 90054
Gender Male
Status Offline
Bump
Floor 24 Posted 2007-06-03 12:44 ·  中国 山东 青岛 阿里云
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
My understanding: make BAT graphical, and standardize the language (like VB).

Actually its only significance lies in protecting the program; execution efficiency will be slower than original BAT.
DOS之家 http://doshome.com 站长 葛明阳
Floor 25 Posted 2007-10-16 18:27 ·  中国 广东 东莞 电信
初级用户
Credits 26
Posts 12
Joined 2007-10-13 18:43
18-year member
UID 99648
Gender Male
Status Offline
Impressive
Floor 26 Posted 2007-10-16 18:28 ·  中国 广东 东莞 电信
初级用户
Credits 26
Posts 12
Joined 2007-10-13 18:43
18-year member
UID 99648
Gender Male
Status Offline
Downloaded first, thanks
Floor 27 Posted 2007-10-17 13:54 ·  中国 上海 电信张江机房
初级用户
★★
Credits 150
Posts 68
Joined 2007-04-26 00:18
19-year member
UID 86476
Gender Male
Status Offline
Leaving a footprint, will study it later. Thanks, OP.
Floor 28 Posted 2007-12-07 19:51 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 33
Posts 16
Joined 2007-12-05 16:57
18-year member
UID 104767
Gender Male
Status Offline
This kind of thread I definitely have to bump, nice line of thought!
Floor 29 Posted 2008-01-16 18:44 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
The OP's ideas are truly extraordinary, always walking ahead of us,
but personally I think the workload of this project is enormous!!!!
I suggest first discussing and standardizing the code for some common tasks, and then,
build header files, turn them into function libraries, and then try it out in practice.
Everyone, actively post your opinions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Floor 30 Posted 2008-01-16 23:30 ·  中国 广东 深圳 南山区 电信
中级用户
★★
部落守望者
Credits 351
Posts 140
Joined 2006-06-19 17:11
20-year member
UID 57261
Gender Male
Status Offline
If OOP in batch files gets realized, then wouldn't any application program become text-based!!! In the future, when everyone shares software, they would only need to pass around text, haha. But then copyright issues would be hard to handle :P
If the efficiency is good enough (hardware keeps getting faster, so that doesn't seem like too big a problem), then program development would also become simpler (saving many tools like Compiler/Assemblyer/Llinker). DOS itself would be one huge development environment, that's so creative!!!
This should really be planned out well. Maybe this could even become a direction for future development (if done well, this one feature could surpass Windows and other graphical-interface OSes). Support the OP!!
One can imagine that at that time DOS would purely be just a kernal (the onion's core), and on top of it one could run n application programs or even n OSes (the onion's n layers of skin) :D

Our DOS should also start considering a 64-bit architecture, otherwise how can it bring out its short-and-powerful strengths?? Large-scale use of batch files on 64-bit would probably be very meaningful.

[ Last edited by enjoyer on 2008-1-17 at 12:21 AM ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
zzz19760225 +1 2016-12-11 23:22
一切从底层开始
Forum Jump: