Windows 10: How do I create a batch file that listens to a process and once it"s ended, it logs the...

Discus and support How do I create a batch file that listens to a process and once it"s ended, it logs the... in Windows 10 Gaming 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 Gaming' started by StudyHacks, Nov 14, 2021.

  1. 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 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 14, 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 14, 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 14, 2021
    #3
  4. How do I create a batch file that listens to a process and once it"s ended, it logs the...

    Batch Files Knowledge Base

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

How do I create a batch file that listens to a process and once it"s ended, it logs the...

Loading...
  1. How do I create a batch file that listens to a process and once it"s ended, it logs the... - Similar Threads - create batch file

  2. How do I end all processes?

    in Windows 10 BSOD Crashes and Debugging
    How do I end all processes?: I have 158 processes opened right now according to my task manager. I've tried ending one of them, but its justs opens again. My CPU is mostly being used and this slows down my performance. Im not really worried about it, but if anyone could help I would appreciate it....
  3. How do I end all processes?

    in Windows 10 Gaming
    How do I end all processes?: I have 158 processes opened right now according to my task manager. I've tried ending one of them, but its justs opens again. My CPU is mostly being used and this slows down my performance. Im not really worried about it, but if anyone could help I would appreciate it....
  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 Software and Apps
    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. 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...
  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. How to end all unnecessary background processes at once?

    in Windows 10 Ask Insider
    How to end all unnecessary background processes at once?: I work with a crappy laptop for gaming and ive been able optimize to make games run well on it on it with low settings, but it is really easy to slow down if a process starts eating up a bit too much memory. I then realized that about half of the memory being eaten up is...
  10. 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...