Auto-Repair Tool

How to run commands on startup in Windows 7,8

Run Commands On Startup_thumb.jpg 1If you have some commands that you want to run whenever you log in on startup, you can simply add shortcuts to batch files to the startup folder.

Easiest Solution: Add Command To .Bat File And Move To Startup Folder

1. Step Open up a notepad and write your command that you would normally run via cmd command prompt. Then save the files as a batch file. If you don’t know how to do that I suggest you read our tutorial how to save notepad as .bat file

Let’s say we add the command


or if you want to copy something to your clipboard whenever you start your PC

DIR /B /A:-D /O:N | clip

2. Step When you saved the .bat file simply move the batch file to

C:\Users\(username)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

If you are having problems locating this startup folder read our tutorial start folder location

3. Step Now whenever you start your PC it will automatically run that batch file.

Any questions? Let us know!


There are lots of alternatives to this. For example, I’m pretty sure that you could come up with a nice solution using AutoHotkey but it’s really easy with batch files so why make easy things more complicated than necessary?

Alternative Solutions: Auto-Repair Your PC And Drivers

Still Having Trouble? Try TWEAKBIT FIXMYPC - FREE

Published: Thursday, February 23rd, 2012 Last Modified: February 23, 2012

Related Posts

Rate This Article
5 of 5 0 (100%) 1 vote