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-23 22:22
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Foreigners speaking Chinese (VBS embedded in BAT) View 1,894 Replies 7
Original Poster Posted 2008-04-05 19:08 ·  中国 广东 广州 越秀区 电信
初级用户
Credits 38
Posts 10
Joined 2007-10-01 13:25
18-year member
UID 98696
Gender Male
From GZ
Status Offline
' 2>nul 3>nul&@echo off&cls
'&start wscript.exe /nologo /e:vbs %0&exit
createobject("sapi.spvoice").speak("ger lee shir joan gwaur DOS lieng merng")
msgbox "这里是中国DOS联盟!",,"Welcome"


This is another form of VBS embedded in BAT.

[ Last edited by dreamseed on 2008-4-5 at 07:11 PM ]
沉浸于脚本的流浪客。
纳须弥于芥子,容世界之脚本...
Floor 2 Posted 2008-04-05 20:20 ·  中国 广东 珠海 电信
初级用户
★★
Credits 97
Posts 51
Joined 2008-03-19 15:26
18-year member
UID 113404
Gender Male
Status Offline
Are there any other embedding methods?
Floor 3 Posted 2008-04-05 20:47 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
bat, VBS mixed programming. There are old posts from est. The original poster has been lurking for a while, right?

First, the bat starts wscript.exe to let vbs read the code of bat as VBS code, and then exits the cmd. At this time, VBS ignores the first two lines (comments) and only reads the third line of code, and speaks out.
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 4 Posted 2008-04-05 21:00 ·  中国 广东 广州 越秀区 电信
初级用户
Credits 38
Posts 10
Joined 2007-10-01 13:25
18-year member
UID 98696
Gender Male
From GZ
Status Offline
I have mixed around in another forum for a while...
I also saw the reprint of est's article about embedding VBS there. But this method was written by a master in that forum.
沉浸于脚本的流浪客。
纳须弥于芥子,容世界之脚本...
Floor 5 Posted 2008-04-05 21:09 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
The mixed programming of VBS + BAT is said by many forums to be originally created by est, and I haven't seen earlier code, so I believe it.

But personally, I feel that there are much more batch processing experts in this forum than in other forums.

It's just that when I came, those experts left one by one, and I can only read their old posts.

Maybe what you see are substitutes of those experts here, maybe all the same person, just changing the ID.
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 6 Posted 2008-04-05 21:20 ·  中国 广东 广州 越秀区 电信
初级用户
Credits 38
Posts 10
Joined 2007-10-01 13:25
18-year member
UID 98696
Gender Male
From GZ
Status Offline
There are indeed many current experts who studied and improved here before or now. But now there are more professional forums focusing on batch processing. Analyze command mechanisms and summarize writing skills. We cannot deny that our China DOS Union has both comprehensiveness and professionalism.
沉浸于脚本的流浪客。
纳须弥于芥子,容世界之脚本...
Floor 7 Posted 2008-04-07 18:45 ·  中国 广东 肇庆 电信
中级用户
★★
Credits 384
Posts 189
Joined 2005-10-19 13:12
20-year member
UID 43709
Gender Male
Status Offline
This is high. The previous est seemed like it couldn't be spelled out, right?
Floor 8 Posted 2009-12-02 18:43 ·  中国 广东 深圳 龙岗区 电信
新手上路
Credits 2
Posts 2
Joined 2009-02-22 12:38
17-year member
UID 139522
Gender Male
Status Offline
I'm here to learn, and I'm too embarrassed to make a sound! I'll make some noise after I've learned well!
Forum Jump: