Run Batch File (.BAT) on Startup in Windows

The easiest way to run a batch file on a system startup is to place it in the Windows “Startup” folder or drop there a shortcut.

Programs placed in this folder are meant to run automatically whenever the computer boots up.

In this note i will show how to run a batch file on a system startup for the “Current User” and for “All Users”.

Cool Tip: Create a batch file to run an .exe program! Read more →

Run Batch File on Startup

Press the ⊞ Win + R keyboard shortcut to launch the “Run” dialog.

To open the “Startup” folder for the “Current User”, type:

shell:startup

To open the “Startup” folder for the “All Users”, type:

shell:common startup

Click “OK” and paste your batch file or the shortcut to the .bat file, that needs to be run on a Windows startup.

Cool Tip: Get the return code from the last command or application! Read more →

Was it useful? Share this post with the world!

11 Replies to “Run Batch File (.BAT) on Startup in Windows”

  1. Best howto on this.

  2. nowun atall says: Reply

    What if we put
    shutdown.exe /s /t 00
    as the content of the batch file… ?
    XD

    1. Why are you so evil

    2. 🙂 🙂 🙂 🙂
      I like the way you think.

    3. BRUH HAHAHAHAHAHAHAHAHAHAHA

  3. Then your computer has virus

  4. TristanKubiH says: Reply

    How do you do the shortcut?

  5. right click when pasting -> Paste shortcut

  6. Problem is, Win 10 won’t accept a shortcut in the Startup folder. Need another way.

    1. THAT is why they said AT THE BEGINNING OF THIS to EITHER use the bat file IN the start up folder OR use a shortcut, SO, put the bat-file IN the start up folder…..can’t hurt anything, right??

Leave a Reply