Windows 7 任务调度程序不使用更新的路径 [英] windows 7 task scheduler doesn't use updated path
问题描述
我刚刚注意到 Windows 7 任务调度程序不使用最新更新的环境路径变量.任务调度程序已启动并正在运行,我更改了路径变量.在任务调度程序中运行的新进程具有旧路径.我不得不杀死 taskeng.exe 以便它可以开始使用最新的路径.所以看起来任务调度程序将新进程生成为子进程而不是新的父进程.在不杀死任务调度程序进程的情况下,是否有任何解决方法?
I just noticed that windows 7 task scheduler doesn't use the latest updated environment path variable. Task scheduler is up and running and I changed the path variable. New processes that run in the task scheduler have the old path. I had to kill the taskeng.exe so that it can start using the latest path. So looks like Task scheduler spawns new processes as child processes rather than new parent processes. Is there any work around for this without killing the task scheduler process?
问候,AJ
推荐答案
使用 cmd/c
启动程序,这将允许访问环境变量.例如:
Use cmd /c
to start the program, this will allow access to environment variables. eg:
cmd/c start %my_exe_path%\myexe.exe
这篇关于Windows 7 任务调度程序不使用更新的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!