Question

  • Creator
    Topic
  • #3937532

    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

You are posting a reply to: How do I write a batch file to log user out after process ends?

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #3939918

      Re: batchfile

      by kees_b ·

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

      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,

Viewing 0 reply threads