─────────────────── 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 ]
