Windows批处理文件仅在某个应用程序未处于活动状态时才退出?

时间:2016-03-29 15:34:29

标签: batch-file

我使用一个简单的图标化批处理文件,只需点击一下即可关闭Windows:

%windir%\System32\shutdown.exe -s -t 0

如何修改它以便在某个应用程序运行时它不会关闭?

1 个答案:

答案 0 :(得分:1)

我不知道你想要设置什么应用程序?所以我选择LocalTime userTime = dateTime.withZone(DateTimeZone.getDefault()).toLocalTime(); 作为应用程序,当然你应该把它改成你的!

firefox.exe