Windows

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!

Question

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

By StudyHacks ·
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
Thread display: Collapse - | Expand +

All Answers

Collapse -

Re: batchfile

by Kees_B Moderator In reply to How do I write a batch fi ...

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,

Related Discussions

Related Forums