Running visible applications, using Java ProcessBuilder, from a process started by TaskScheduler

谁都会走 提交于 2019-12-09 06:55:22

So, the workaround that I found was to stop using TaskScheduler, but to create a script to start my application and added a shortcut to that script in the Start Menu > Programs > Startup folder.

Credit to this article on HowToGeek:

On Windows 7 and earlier versions of Windows, the Start menu contained a “Startup” folder to make this easy.

This folder is no longer as easily accessible on Windows 8, 8.1, and 10, but it’s still accessible. To access it, press Windows Key + R, type “shell:startup” into the Run dialog, and press Enter.

Shortcuts you add to the “shell:startup” folder will only launch when you log in with your user account. If you’d like a shortcut to launch itself whenever any user logs in, type “shell:common startup” into the Run dialog instead.

Since I want my application to start on system startup, rather than user login, I used the “shell:common startup” link.

Applications started in this way - or in my case, applications started by applications started in this way - are visible and/or interactive via their UIs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!