Question

  • Creator
    Topic
  • #3937532

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

    Locked

    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

All Answers

  • Author
    Replies
    • #3939918
      Avatar photo

      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