I have a batch file that starts the Java process on a Windows 2003 server. In accordance with the security policy, users of this machine are forcibly deleted if the user is inactive for a certain period of time. The problem is that when the user logs out, the process also dies.
I planned a new task (Control Panel โ Scheduled Tasks) and selected the option โWhen will my computer startโ and provided the data for the user account. But it seems that this has no effect, the user will still be logged out and the process will die. Need a reboot to make this change effective? And after rebooting, can I achieve what I expect (by supporting the process)?
Alternatively, will this process be run as a Windows service to solve this problem? If so, can you tell me how I can make a Java program or batch file to work as a Windows service? I would prefer not to use any other third party tools or libraries.
thanks
source
share