Windows 10: Create a batch file that listens to process and upon ending it, it kicks the user out of...

Discus and support Create a batch file that listens to process and upon ending it, it kicks the user out of... in Windows 10 Software and Apps to solve the problem; In windows 10 Pro editionBasically I have set up a guest user account with standard user privileges that has a custom user interface - "shell"- called... Discussion in 'Windows 10 Software and Apps' started by StudyHacks, Nov 15, 2021.

  1. Create a batch file that listens to process and upon ending it, it kicks the user out of...


    In windows 10 Pro editionBasically 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.

    :)
     
    StudyHacks, Nov 15, 2021
    #1

  2. Good resources for creating batch files?

    I recently landed a new role as a technology coordinator for a few schools. I am learning so much and it's been wonderful. However, I have come to the realization that it would be highly efficient and beneficial to automate some processes. I haven't messed around with creating batch files before, but I would love to learn. Are there any particularly credible and helpful resources out there with information on creating batch files? Thanks!
     
    rolling moses, Nov 15, 2021
    #2
  3. oily_17 Win User
    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Nov 15, 2021
    #3
  4. Create a batch file that listens to process and upon ending it, it kicks the user out of...

    Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Nov 15, 2021
    #4
Thema:

Create a batch file that listens to process and upon ending it, it kicks the user out of...

Loading...
  1. Create a batch file that listens to process and upon ending it, it kicks the user out of... - Similar Threads - Create batch file

  2. Creating batch file on Win10

    in Windows 10 Network and Sharing
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  3. Creating batch file on Win10

    in Windows 10 Software and Apps
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  4. Create a batch file that listens to process and upon ending it, it kicks the user out of...

    in Windows 10 Gaming
    Create a batch file that listens to process and upon ending it, it kicks the user out of...: In windows 10 Pro editionBasically 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...
  5. Create a batch file that listens to process and upon ending it, it kicks the user out of...

    in Windows 10 Customization
    Create a batch file that listens to process and upon ending it, it kicks the user out of...: In windows 10 Pro editionBasically 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...
  6. How do I create a batch file that listens to a process and once it"s ended, it logs the...

    in Windows 10 Gaming
    How do I create a batch file that listens to a process and once it"s ended, it logs the...: In windows 10 Pro editionBasically 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...
  7. How do I create a batch file that listens to a process and once it"s ended, it logs the...

    in Windows 10 Software and Apps
    How do I create a batch file that listens to a process and once it"s ended, it logs the...: In windows 10 Pro editionBasically 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...
  8. How do I create a batch file that listens to a process and once it"s ended, it logs the...

    in Windows 10 Customization
    How do I create a batch file that listens to a process and once it"s ended, it logs the...: In windows 10 Pro editionBasically 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...
  9. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  10. Create Multipurpose batch file

    in Windows 10 Software and Apps
    Create Multipurpose batch file: Hope this is the correct sub forum for this.. Often use a variety of command line functions e.g. winver / netplwiz etc etc Is there a way of creating a batchfile to include multiple commands with a number option to select...would be so handy i.e. 1 Netplwiz 2 Winver...