如何在C#中区分Windows关闭和重新启动? [英] How to Distinguish Windows Shutdown and restart in c# ?

查看:64
本文介绍了如何在C#中区分Windows关闭和重新启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要确定Windows是否处于关闭或重新启动模式.

这是在Windows关闭时(使用关闭脚本)而不在Windows重新启动时自动开始防病毒扫描.

I need to identify If Windows is in a shutdown or restart mode.

This is to start an antivirus scan automatically when windows is shutting down(Using shut down Script) and not on Windows restart.

推荐答案


这篇关于如何在C#中区分Windows关闭和重新启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆