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-08-02 00:20
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make MediaPlayer run in the background with VBS? View 1,574 Replies 3
Original Poster Posted 2006-08-02 09:33 ·  中国 浙江 宁波 电信
初级用户
★★
Credits 131
Posts 53
Joined 2006-07-31 09:06
20-year member
UID 59539
Status Offline
How to make MediaPlayer run in the background with VBS?
Floor 2 Posted 2006-08-02 11:44 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
There have been multiple discussions in this section. Please use the forum's search function.
Regarding the issue of running a specified program in the background
Refer to the method in 15F.
Floor 3 Posted 2006-08-02 14:15 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
However, in addition to the method above, you can try this VBS script



Set Player = CreateObject("WMPlayer.OCX")
Player.url = "file://C:\WINDOWS\system32\oobe\images\title.wma"
WScript.Sleep 1000
wscript.Sleep Player.currentMedia.duration *1000



This player only takes up 2MB of memory, cool! Study this control and you can easily implement functions like playlist playback, online playback, lyric download, etc. cool functions!

[ Last edited by electronixtar on 2006-8-2 at 14:18 ]

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 4 Posted 2006-08-17 19:34 ·  中国 浙江 宁波 电信
初级用户
★★
Credits 131
Posts 53
Joined 2006-07-31 09:06
20-year member
UID 59539
Status Offline
Forum Jump: