开发者社区> 问答> 正文

请高手帮忙,2008计划任务启动的软件为何有进程没界面

window2008计划任务启动的软件为何有进程,但没界面,而且程序也不起作用 ,就连最简单的记事本软件也一样。要怎么设置呀?

展开
收起
pcx123 2012-08-13 11:14:05 12934 0
6 条回答
写回答
取消 提交回答
  • 提交工单吧~
    2012-08-13 23:24:18
    赞同 展开评论 打赏
  • Re请高手帮忙,2008计划任务启动的软件为何有进程没界面
    不清楚这种情况
    2012-08-13 18:26:54
    赞同 展开评论 打赏
  • 不清楚,友情帮顶。

    -------------------------

    nono发话了,让提交工单。

    2012-08-13 13:16:59
    赞同 展开评论 打赏
  • Re请高手帮忙,2008计划任务启动的软件为何有进程没界面
    你i要看进程对应的账户是什么。一般来说远程的每个会话都会创建一个桌面,每个已登录的账号也一般至少有一个桌面(包括SYSTEM账户)。

    因此服务进程一般不会与用户有UI交互,因为服务进程创建的窗口都是在SYSTEM账户对应的桌面上创建的,你根本看不到。

    任务计划也是一个道理,由于任务计划本身就是一个系统服务控制的,因此由任务计划创建的进程一般来说都是继承自服务进程的(当然你在创建任务计划的时候可以设置所使用的账户)。因此一般用任务计划执行的程序都是没有UI的,而且是执行完就自动退出,更不涉及任何消息循环之类的。

    你说的只有进程没有窗口的现象,可以通过发送 Ctrl-Alt-Del,把桌面切换到 Winlogon 桌面(也就是SYSTEM账户使用的桌面)查看,应当会发现有窗口。

    详见 MSDN 解释: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682573(v=vs.85).aspx

    By default, there are three desktops in the interactive window station: Default, ScreenSaver, and Winlogon.

    The Default desktop is created when Winlogon starts the initial process as the logged-on user. At that point, the Default desktop becomes active, and it is used to interact with the user.

    Whenever a secure screen saver activates, the system automatically switches to the ScreenSaver desktop, which protects the processes on the default desktop from unauthorized users. Unsecured screen savers run on Winsta0\Default.

    The Winlogon desktop is active while a user logs on. The system switches to the default desktop when the shell indicates that it is ready to display something, or after thirty seconds, whichever comes first. During the user's session, the system switches to the Winlogon desktop when the user presses the CTRL ALT DEL key sequence, or when the User Account Control (UAC) dialog box is open.









    2012-08-13 12:54:04
    赞同 展开评论 打赏
  • 2008的任务计划要填写起始于(好像是这里,好久没用了,忘了)那里,要不然不能运行。
    2012-08-13 12:32:10
    赞同 展开评论 打赏
  • 不清楚这种情况,后台提交工单
    2012-08-13 11:22:03
    赞同 展开评论 打赏
滑动查看更多
问答地址:
问答排行榜
最热
最新

相关电子书

更多
服务上云加速大家居产业C2M进程 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多