我有一个像下面这样的vbs msgbox。我想在用户点击“确定”按钮后打开位置C:\WORK
。是否有一种简单的方法可以告诉OK按钮如何在hta onclick xxxx
Set wshShell = WScript.CreateObject( "WScript.Shell" )
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
x=msgbox("Dear user on " & strComputerName & vbcrlf & " " & vbcrlf & "There are more than 5 files saved on C:\WORK folder, Please clean up.", &h51000, "Clean up C:\work")
答案 0 :(得分:1)
这样的事情应该有效:
wshShell.Run "explorer.exe /e,C:\Work"