<job>
<script language="JScript">
var oShell = new ActiveXObject("Shell.Application");
oShell.ShellExecute("wmplayer.exe","E:\\wsh\\believe.wma E:\\wsh\\rgnhaw.mp3 E:\\wsh\\miss.mp3","C:\\Program Files\\Windows Media Player","open","1");
var oWord = new ActiveXObject("Word.Application");
var keyword = /Windows Media Player/i;
for(var i =1 ; i <= oWord.Tasks.Count; i++)
{
if(keyword.test(oWord.Tasks.Item(i).Name))
{
oWord.Tasks.Item(i).Visible = false;
break;
}
}
oWord.Quit();
</script>
</job>
posted on 2008-02-20 13:18
汪杰 阅读(473)
评论(0) 编辑 收藏 引用