How do I run two .bat files in sequence

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jim501
    PCHF Member
    • Sep 2019
    • 12

    #1

    How do I run two .bat files in sequence

    I am using a Window Manager program that won’t run at logon even though the “start when Windows starts” box is checked. I put it in the startup folder and it starts when I logon but the window remains open until I manually close it. I want it to start the program and have it minimized to the tray automatically. I have created 2 .bat files, one opens the program and the other closes it to the tray. I have tried many different scripts but I don’t know how to create a script that runs both steps in the process. When I place both batch scripts in one .bat only the first script is executed. I have tried the popular 3rd party softwares but none of them effects the program. Can anyone help me with a solution that will run both scripts in one .bat file? I’ve worked on this for two days and I cannot find a solution. I can’t get the “call” command to work and task sechduler dosen’t help.
  • PeterOz
    PCHF Technical Response Team
    • Mar 2021
    • 4190

    #2
    Attach your 2 bat files as text files so we ca see what is going on.
    I will tag @Bruce to have a look also.

    Comment

    • Bruce
      PCHF Moderator
      • Oct 2017
      • 10699

      #3
      Would probably be simpler if you supplied the .bat scripts so we can look at them.

      What about just having both .bat files in the Startup folder?
      Don’t forget, instead of the .bat file, make it a shortcut and shortcuts can be made to run minimised if that helps.

      Comment

      • Bruce
        PCHF Moderator
        • Oct 2017
        • 10699

        #4
        @Jim501 - any update?

        Comment

        • Bruce
          PCHF Moderator
          • Oct 2017
          • 10699

          #5
          Closing - no activity.
          To request a re-open, go to Members > Staff Members, click a Staffer then Start Conversation and quote thread name.

          Comment

          Working...