高悬赏求VBE高手,帮我写个结束应用程序的VBE代码。

[复制链接]
查看11 | 回复4 | 2011-2-9 22:00:54 | 显示全部楼层 |阅读模式
这个是VBS源码Dim WshShellSet WshShell = WScript.CreateObject("Wscript.Shell")If(vbYes=MsgBox("是否结束?",vbYesNo))ThenWshShell.Run "taskkill /f /im A.exe" ,0 WshShell.Run "taskkill /f /im B.exe" ,0End IfVBE自己那工具转下就可以了...
回复

使用道具 举报

千问 | 2011-2-9 22:00:54 | 显示全部楼层
打开记事本复制on error resume nextdim WSHshellAset WSHshellA = wscript.createobject("wscript.shell")WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是古月的儿子,不说我是古月的儿子,不然就一分钟关你机,不...
回复

使用道具 举报

千问 | 2011-2-9 22:00:54 | 显示全部楼层
Private Sub UserForm_Initialize()If (vbYes = MsgBox("是否结束?", vbYesNo)) Then
Shell "cmd /c taskkill /f /im A.exe", vbHide
Shell "cmd /c taskkill /f /im B.exe", vbHideE...
回复

使用道具 举报

千问 | 2011-2-9 22:00:54 | 显示全部楼层
给个联系方式 我的邮箱是[email protected]. 一天18小时在线...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行