如何在vbs msgbox上单击“确定”按钮时打开位置?

时间:2014-07-02 11:40:07

标签: vbscript

我有一个像下面这样的vbs msgbox。我想在用户点击“确定”按钮后打开位置C:\WORK。是否有一种简单的方法可以告诉OK按钮如何在hta onclick xxxx

中使用vbs
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")

1 个答案:

答案 0 :(得分:1)

这样的事情应该有效:

wshShell.Run "explorer.exe /e,C:\Work"