我有一个应该运行 .bat 或 .vbs 文件的 VBScript,但它不起作用!它出现了一个错误,说找不到文件,无论我是否放入文件路径(无论如何我认为这都无关紧要,因为它在同一个目录中)。
所以我的问题是,如何从 VBScript 中启动 .bat 文件(或者更好的是 .vbs 文件)?
相关代码如下:
'*******This is the start of my open command that doesn't work*******
Do
If Hour(Now) >= 9 And Hour(Now) <= 18 And Minute(Now) = 34 And Second(Now) = 59 Then
Dim shell
Set shell = CreateObject("WScript.Shell")
shell.Run "F:\\EAS\Volume Up.vbs"
Set shell = Nothing
MsgBox "My De-bug Message Box which doesn' even get to open"
WScript.Sleep 2000
Set WshShell = CreateObject("WScript.Shell")
music = "C:\...\MYFILE.wav"
WshShell.Run "wmplayer """ & music & """", 0, True
WScript.Quit 1
Else
'*******This is the end*******
那么我做错了什么?是不是打开方式不对?我应该放什么?