每次关闭时如何启动程序? [英] How to start program everytime it is closed?

查看:71
本文介绍了每次关闭时如何启动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要-在我的软件安装过程中-以编程方式将一个将要执行的任务放入Windows Task Scheduler中:如果我正在安装的软件未运行,它将自动开始为所有用户运行用户登录到当前计算机.存在一种方法 用调度程序来做吗?还是拥有自己的窗户的另一种方式?我需要确保,每次我的软件未运行时,它都将启动.

Obs:我需要启动的该软件具有GUI.

I need - during my software instalation - programmatically put in windows task scheduler a task that 'll do it: if my software - that i'm installing - isn't running, it automatically start to run for all users logged on current machine. Exists a way to do that with the scheduler? Or another way with own windows? I need to be assured that everytime my software isn't running, it be started.

Obs: This software that i need start has GUI.

推荐答案

您能告诉我们为什么要使用这种功能吗?即使用户关闭了UI又不想再次启动它,您是否还要重新打开UI?
Could you tell us why you want such a functionality? Do you want to reopen the UI even if the user closes it and does not want to start it again?


这篇关于每次关闭时如何启动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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