Windows 7 - Run Batch File On Start-Up - Stack Overflow
Windows 7 - Run Batch File On Start-Up - Stack Overflow
7 Run Batch File On Startup Stack Overflow
sign up log in tour help stack overflow careers
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no
Take the 2minute tour ×
registration required.
Run Batch File On Startup
Is there a way to start multiple programs in a batch file on system startup? In addition to that, in that batch file, I would like to be able to
say: Once I execute a program, wait until that program completely loads, and execute the next listed program.
Any help would be appreciated.
asked Jan 19 '14 at 15:00
Randomishlying
64 1 1 9
I think this question is better placed on SuperUser. Anyway startup applications are both in registry and a
special folder. Your second question is more complex: you need some help from the program you want to
run (is it interactive? it'll execute and return immediately?) – Adriano Repetti Jan 19 '14 at 15:03
My plan was to disable loading any startup items (in the system configuration), and only load system
services. Then replace that system function with a batch file that loads all the startup items. I do not know
if it would work any better, but I thought I might test it, to see if things still load as slowly (at startup). None
of the programs I would be loading require any interactivity. – Randomishlying Jan 19 '14 at 15:32
3 Answers
To run a batch file at start up: start >> all programs >> rightclick startup >> open >> right
click batch file >> create shortcut >> drag shortcut to startup folder.
answered Jan 19 '14 at 15:07
Troubleshoot
753 3 17
There are a few ways to run a batch file on start up. The one I usually use is through task
scheduler. If you press the windows key then type task scheduler it will come up as an option (or
find through administerative tools).
When you create a new task you can chose from trigger options such as 'At log on' for a specific
user, on workstation unlock etc. Then in actions you select start a program and put the full path to
your batch script (there is also an option to put any command line args required).
Here is a an example script to launch Stack Overflow in Firefox:
@echo off
title Auto launch Stack Overflow
start firefox
http://stackoverflow.com/questions/tagged/python+or+sql+or+sqlite+or+plsql+or+oracle+or+windows‐
7+or+cmd+or+excel+or+access+or+vba+or+excel‐vba+or+access‐vba?sort=newest
REM Optional ‐ I tend to log these sorts of events so that you can see what has happened
afterwards
echo %date% %time%, %computername% >> %logs%\StackOverflowAuto.csv
exit
http://stackoverflow.com/questions/21218346/runbatchfileonstartup 1/2
3/18/2015 windows 7 Run Batch File On Startup Stack Overflow
answered Jan 19 '14 at 15:09
ChrisProsser
4,070 2 12 27
1 That is an elegant and powerful solution. It is very useful if you like to improve your technical skills. –
Almir Campos Jul 24 '14 at 4:04
To start the batch file at the start of your system, you can also use a registry key.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Here you can create a string. As name you can choose anything and the data is the full path
to your file.
There is also the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
to run something at only the next start of your system.
answered Oct 8 '14 at 8:13
Rainer Zufall
28 6
http://stackoverflow.com/questions/21218346/runbatchfileonstartup 2/2