How do I run two .bat files in sequence

  • Hi there and welcome to PC Help Forum (PCHF), a more effective way to get the Tech Support you need!
    We have Experts in all areas of Tech, including Malware Removal, Crash Fixing and BSOD's , Microsoft Windows, Computer DIY and PC Hardware, Networking, Gaming, Tablets and iPads, General and Specific Software Support and so much more.

    Why not Click Here To Sign Up and start enjoying great FREE Tech Support.

    This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  • Hello everyone We want to personally apologize to everyone for the downtime that we've experienced. We are working to get everything back up as quickly as possible. Due to the issues we've had, your password will need to be reset. Please click the button that says "Forgot Your Password" and change it. We are working to have things back to normal. Emails are fixed and should now send properly. Thank you all for your patience. Thanks, PCHF Management
Status
Not open for further replies.

Jim501

PCHF Member
Sep 10, 2019
12
1
24
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.
 
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.
 
Closing - no activity.
To request a re-open, go to Members > Staff Members, click a Staffer then Start Conversation and quote thread name.
 
Status
Not open for further replies.