如何在关闭 Windows 时安排任务运行 [英] How to schedule a task to run when shutting down windows

查看:41
本文介绍了如何在关闭 Windows 时安排任务运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Windows XP 中安排任务在关闭 Windows 时运行.这样我就想在每次关闭 Windows 时运行我用 c# 编写的简单命令行程序.当我的计算机关闭时,计划任务中似乎没有执行此任务的选项.

How do you schedule a task in Windows XP to run when you shutdown windows. Such that I want to run a simple command line program I wrote in c# everytime I shut down windows. There doesn't seem to be an option in scheduled tasks to perform this task when my computer shuts down.

推荐答案

执行 gpedit.msc(本地策略)

Execute gpedit.msc (local Policies)

计算机配置 -> Windows 设置 -> 脚本 -> 关机 -> 属性 -> 添加

Computer Configuration -> Windows settings -> Scripts -> Shutdown -> Properties -> Add

这篇关于如何在关闭 Windows 时安排任务运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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