Windows 10: Batch file leaves multiple instances after log off

Discus and support Batch file leaves multiple instances after log off in Windows 10 Performance & Maintenance to solve the problem; I use task scheduler to run some batch files every time I log on and unlock a user account to refresh certain software that tends to get tripped up... Discussion in 'Windows 10 Performance & Maintenance' started by SSShadii, Jun 15, 2020.

  1. SSShadii Win User

    Batch file leaves multiple instances after log off


    I use task scheduler to run some batch files every time I log on and unlock a user account to refresh certain software that tends to get tripped up often. My basic batch file reads like:

    File1.bat:
    start /min "" "<File2.bat"
    exit

    File2.bat
    <Do some things>
    exit

    The task scheduler runs FIle1.bat every log on or unlock, which in turn runs File2.bat. I do this to prevent the command prompt from popping up everytime.

    Problem is, I notice that some windows programs associated with the command prompt don't shut down, and, the next time the batch files run, they start new instances. The most obvious culprits are "Console Window Host" and "Windows Command Processor". I believe that "Performance Log Utility" is doing it too. Basically, everytime I log on and off or unlock my account, it adds another instance or two.

    Is there something I can add to my batch file that can change this? I would like to avoid having a second batch file run when I log out or lock the account that cleans this up.

    :)
     
    SSShadii, Jun 15, 2020
    #1
  2. Slugbait. Win User

    Batch file to launch multiple instances of the Chrome browser, each instance with unique tabs to websites

    I searched the Internet quite a bit, thinking someone else wanted to do this, or had a batch already written for this scenario, but my searches came up with nothing. Hopefully I'm not duplicating someone else.

    There are a couple of different batch files out there that will launch a single instance of the browser, with multiple tabs opening to various different websites. They are simplistic and straight-forward.

    However, I wanted to launch multiple instances of the Chrome browser, each instance with its own unique group of tabs to websites. The way the currently existing batch files are written, they don't work, they need significant tweaking. Here is an example
    of how to do this:

    Code:
    @echo off
    
    "%C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" /n
    
    start chrome www.microsoft.com
    
    start chrome www.aol.com
    
    "%C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" /n
    
    start chrome www.nbcnews.com
    
    start chrome www.abcnews.com
    
    @echo off
    
    "%C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" /n
    
    start chrome www.yahoo.com
    
    start chrome www.msn.com
    This launches three instances of Chrome: one instance has tabs open to microsoft and aol, the second has tabs open to nbcnews, etc.

    Note that this does not work for Internet Explorer. I've already verified. Perhaps there is a way to do it with IE, maybe someone else can figure it out. I haven't tested with other browsers.
     
    Slugbait., Jun 15, 2020
    #2
  3. adrianx Win User
    Batch File Recognition

    I use batch file to take multiple log file from the network at the boot time and to test the existence of diferent spyware in a network. I know basic, batch and that is ~ all that I know for now, but I'm at university... I must learn more.
     
    adrianx, Jun 15, 2020
    #3
  4. cmattb Win User

    Batch file leaves multiple instances after log off

    Log multiple cards

    As far as I can tell, the only way to log the temperatures from two cards at once (SLI/Crossfire) is to have two instances of GPUZ running at once and logging to seperate files. Is multiple card logging planned in the next revision of the software?
     
    cmattb, Jun 15, 2020
    #4
Thema:

Batch file leaves multiple instances after log off

Loading...
  1. Batch file leaves multiple instances after log off - Similar Threads - Batch file leaves

  2. Open multiple notebad instances of the same file

    in Windows 10 Gaming
    Open multiple notebad instances of the same file: I recently started to encounter a problem with notepad as it doesn't allow me to open multiple instances of the same file which is becoming a kind of nightmare for me.For example, I use notepad to open files with .PCR extension which is used for fullprof software. this...
  3. Open multiple notebad instances of the same file

    in Windows 10 Software and Apps
    Open multiple notebad instances of the same file: I recently started to encounter a problem with notepad as it doesn't allow me to open multiple instances of the same file which is becoming a kind of nightmare for me.For example, I use notepad to open files with .PCR extension which is used for fullprof software. this...
  4. Multiple Instances

    in Windows 10 Gaming
    Multiple Instances: Does anyone know how to prevent this from happening? i dont have much ram so it slows down the speed of everything. https://answers.microsoft.com/en-us/windows/forum/all/multiple-instances/da352446-efc2-4272-a8f3-f81ae1359d75
  5. Multiple Instances

    in Windows 10 Software and Apps
    Multiple Instances: Does anyone know how to prevent this from happening? i dont have much ram so it slows down the speed of everything. https://answers.microsoft.com/en-us/windows/forum/all/multiple-instances/da352446-efc2-4272-a8f3-f81ae1359d75
  6. Searching for multiple instances of the same file in different folders?

    in Windows 10 Network and Sharing
    Searching for multiple instances of the same file in different folders?: Is there a way in Windows graphical search, or even Powershell command-line to search for any instances of a file name that appears multiple times on the same drive?...
  7. Turn Off LAC Via Batch File

    in Windows 10 Network and Sharing
    Turn Off LAC Via Batch File: Windows 10 1909 (18363.720) Back in my Windows 7 days, I created a batch file, that watched for the unexpected/accidental disconnection of my VPN, and immediately killed my main Ethernet connection. Worked flawlessly, saved me a number of times. Well now I am in Windows...
  8. Renaming Multiple File Extensions With a Batch File

    in Windows 10 Customization
    Renaming Multiple File Extensions With a Batch File: Hello, Pretty self explanatory question, but not turning up the results I need. If I use a command line window to change a bunch of file types, I can do the following: CD LocalDirectory\Is\Located\Here REN *.jpg *.tif This changes every file that has a JPG extension to...
  9. Multiple Instances of 'Speakers (SndTAudio)'

    in Windows 10 Drivers and Hardware
    Multiple Instances of 'Speakers (SndTAudio)': Hi - when I look at my audio devices I can see 16 instances of 'Speakers SndTAudio' each of which is in "ready" status and five instances of AMD High Definition Audio Device (none of which are plugged in). I only recently upgraded from Win 7 Pro to Win 10 Pro and I have...
  10. Batch File - Find Multiple Files From Multiple Locations

    in Windows 10 Support
    Batch File - Find Multiple Files From Multiple Locations: Hi, I'm not new to Batch Files but i have a requirement that i can't seem to get my head around, I'm sure it must be simple'ish.. I have 2 .txt files (Locations.txt | Files.txt) Locations is a list of directories Files is a list of file names I would like to...