How do I write a batch file to log user out after process ends?

Bálint Juhász 1 Reputation point
2021-11-17T07:23:07.967+00:00

Literally just a batch file that listens to a process (Playnite.exe) and upon exiting it, it kicks the user out of the windows account, that"s it.

Thanks

Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
280 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,198 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.