VBScript 在进程结束时关闭 Windows?
我有一个程序,有时会在深夜扫描数据。在这些情况下,我想运行一个 VBScript 来监视该程序关闭,并在关闭时关闭 Windows。
我创建了一个 .BAT 文件来运行该程序,然后关闭 Windows,但我并不总是需要在使用完该程序后关闭 Windows。
所以我想使用扫描程序,如果在晚上结束时我准备离开,但程序仍在扫描,我会打开 VBScript,它会监视我的扫描程序关闭。
这可能吗?
Windows 7 Ultimate
x64 UAC = ON
I have a program that scans through data at the end of the night on some occasions. On those occasions, I would like to run a VBScript that will watch for that program to close, and when it does, will shut down Windows.
I created a .BAT file that runs the program and then shuts Windows down, but I don't always need to shutdown when I finish using the program.
So I would like to use the scanning program, and if, at the end of the night, I am ready to leave, but the program is still scanning, I would to open the VBScript that will watch for my scanning program to close.
Is this possible?
Windows 7 Ultimate
x64 UAC = ON
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我通过 Techimo.com 上的这篇文章弄清楚了如何做到这一点。
Well, I figured out how to do this via this post at Techimo.com.