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 07:19
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Share] Mixed Programming of Batch Processing and Other Languages View 6,275 Replies 21
Original Poster Posted 2007-01-18 04:59 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Having learned so much knowledge on our forum, the best way to give back to the community is: writing a wiki. What is a wiki? It's a library, a database where everyone can freely write and modify. To better develop DOS and batch processing, please各位 experts spend 10 minutes online every day to organize the knowledge and write it into the union's wiki.

I'll start with one:

http://www.cn-dos.net/mediawiki/index.php?title=Batch%20Processing%20and%20Other%20Language%20Mixing%20Programming

[ Last edited by electronixtar on 2007-1-18 at 06:12 AM ]

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 2 Posted 2007-01-18 06:17 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Bump yourself up~~~Sofa~~~

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2007-01-18 06:19 ·  中国 河北 廊坊 三河市 移动
初级用户
Credits 41
Posts 19
Joined 2006-12-15 00:10
19-year member
UID 73540
Gender Male
Status Offline
Support
Floor 4 Posted 2007-01-18 06:22 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
Hehe, the post by est should be topped. But work still needs others to do, I'll support you spiritually.
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 5 Posted 2007-01-18 07:14 ·  中国 山西 运城 联通
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
It's a very good synthesis.

It feels that the following supplements need to be done:

The mixed use of bat/asm, the earlier one used the scheme of self-embedding and then direct redirection, only later than the echo method. The later appeared find anti-filter method was also relatively popular.

The mixed programming of bat with sed/awk/basic/html has also been discussed one after another. It is suggested to turn over more old posts.

In addition, as an architecture,.Net does not have the level of mixed programming with bat. It is suggested to change it to C#, or.NET/C#
Floor 6 Posted 2007-01-20 08:10 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Brother qzwqzw is amazing. I'm ignorant. Could you please explain the "scheme of direct redirection after self-embedding" and the "find anti-filtering method"?

Well, I'm not very familiar with bat and sed/awk/basic/HTML. The wiki was written according to my own understanding. Brother, if you don't mind the trouble, it's strongly suggested that qzwqzw modify the WIKI. The good thing about wiki is that everyone can edit it and it's up to everyone.

As for changing.NET to C#, I personally think it's inappropriate. Actually, it's the same as integrating VB.NET/VC.NET/JScript.NET/IronPython, and they all call the.NET Framework, so it's better not to change it.

Once again, strongly suggest that qzwqzw directly modify the wiki!

[ Last edited by electronixtar on 2007-1-27 at 12:58 AM ]

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 7 Posted 2007-01-27 01:12 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 8 Posted 2007-01-28 00:31 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Take the following mentioned minimal animation as an example

http://www.cn-dos.net/forum/viewthread.php?tid=25847&fpage=2

Example of direct redirection after self-embedding


@echo off
goto start
e 100 B0 13 CD 10 C4 2F AA 13 C7 64 13 06 6C 04 50 B4 01 CD 16 58 74 F0 B8 03 00 CD 10 C3
r cx
1c
n mini_ani.com
w
q

:start
debug < %0 >nul
mini_ani.com
del mini_ani.com
pause



Example of find anti-filtering

Its advantage is that multiple scripts can be embedded and filtered through find


@echo off
e 100 B0 13 CD 10 C4 2F AA 13 C7 64 13 06 6C 04 50 B4 01 CD 16 58 74 F0 B8 03 00 CD 10 C3
r cx
1c
n mini_ani.com
w
q

@find "@" /v < %0 | debug >nul
@mini_ani.com
@del mini_ani.com
@pause


[ Last edited by qzwqzw on 2007-1-27 at 11:33 AM ]
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
0401 +4 2007-01-28 04:54
redtek +10 2007-01-29 00:22
Floor 9 Posted 2007-01-28 04:00 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Learned.
Added 3 more methods today, heh.

[ Last edited by electronixtar on 2007-1-28 at 04:09 AM ]

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 10 Posted 2007-01-29 00:20 ·  中国 北京 中移铁通
荣誉版主
★★★
Credits 1,338
Posts 356
Joined 2005-07-15 12:09
20-year member
UID 40733
Gender Male
Status Offline
Using wiki to manage fragmented knowledge is a very good method, which is very convenient for classification and organization.

I have some understanding of sed and awk. I will write some simple examples to supplement, but it will be completed after some time.

For Perl, you can refer to the scripts attached to ActivePerl, and the principle of PHP is similar.
  ☆开始\运行 (WIN+R)☆
%ComSpec% /cset,=何奈无── 。何奈可无是原,事奈无做人奈无&for,/l,%i,in,(22,-1,0)do,@call,set/p= %,:~%i,1%<nul&ping/n 1 127.1>nul

Floor 11 Posted 2007-01-29 00:26 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Respect the helpless version master~~~Looking forward to the wiki receiving more and more attention

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 12 Posted 2007-01-29 00:31 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
More and more, I feel that wiki is simply an online multi-person collaborative and synchronized publishing system, haha... Organizing things and writing are simply too cool~ :))))
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 13 Posted 2007-01-29 02:49 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

More and more, I feel that wiki is simply an online multi-person collaborative synchronous publishing system, haha...
Organizing things and writing are simply too cool~ :)))


……I have been advocating wiki for many years...

At first, I didn't know why everyone didn't like wiki. It turned out that everyone didn't have a concept of wiki and didn't understand it... Sweat~

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 14 Posted 2007-05-02 16:05 ·  中国 云南 昆明 电信
初级用户
Credits 57
Posts 29
Joined 2006-12-27 09:36
19-year member
UID 74694
Gender Male
Status Offline
Not bad. It is suggested to directly make it into an e-book, which would be even better.
Floor 15 Posted 2007-05-02 17:03 ·  中国 四川 成都 电信
初级用户
Credits 105
Posts 44
Joined 2006-10-05 13:57
19-year member
UID 64618
Status Offline
The materials are quite miscellaneous. If there were an ebook, it would really be great.
Forum Jump: