中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 23:47
48,039 topics / 350,124 posts / today 2 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » VBS question. I really don't know where to post this
Printable Version  652 / 0
Floor1 yuyi0215 Posted 2007-09-28 17:26
初级用户 Posts 10 Credits 35

─────────────────── Moderator Record ────────────────────
Handled by: lxmxn
Title: VBS question. I really don't know where to post this
Note: Because the title is too vague, it is not convenient for forum searching and management. Please modify the title within three days, otherwise 2 credits will be deducted
Reference: http://www.cn-dos.net/forum/viewthread.php?tid=7326&fpage=1
   http://community.csdn.net/IndexPage/SmartQuestion.aspx
─────────────────── Moderator Record ────────────────────


VBS question. I really don't know where to post this. I saw that this place says scripting technology. So I posted it here. If I posted in the wrong place, please forgive me, moderator.

The question is as follows.

Using VBS to write a script that automatically plays sound. I've basically already written it. I just need to get the absolute path of the current directory. I don't know how to do this. Please, experts, help me add it. The code I wrote is as follows:


set shell=createobject("wscript.shell")
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.CreateTextFile("list.m3u", True)
file.write "a.mp3"&vbcrlf&"b.wma"

shell.run "wmplayer list.m3u /start",0


It's just that list.m3u needs an absolute path. I don't know how to get it. I hope an expert can answer. Thank you very much.. Thanks

[ Last edited by lxmxn on 2007-9-28 at 05:39 PM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023