Question Locked

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

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

1 reply

by kees_b

The easiest way is to start the program inside a batchfile and end the batchfile with a programmatic logout. That is, I think, the command shutdown with the right.parameters, that I don't know by head, but are easy to google,

This discussion is closed to new replies.