Can someone create a batch file for me please

Copper Contributor
 
 

How do I create a batch file that listens to a process and once it"s ended, it logs the user out of the guest user account?

In windows 10 Pro edition

 

Basically I have set up a guest user account with standard user privileges that has a custom user interface - "shell"- called Playnite which is a game library.

Tested if it works, works perfectly. However, I need a batch file that would listen to the process (Playnite.exe) and kick the user out of the guest account once the process (Playnite.exe) has ended.

 

 

Can someone help me with this please?

 

 

Edit: Ideally somehow the cmd prompt pop-up part of the batch file would be invisible so to speak so the user wouldn"t see it before he"s kicked out of the guest account.

0 Replies