• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Batch) Autostarting programs on login
#1
Making programs auto start when you log in


DISCLAIMER: This tutorial is for educational purposes only, please do not practice this on equipment you do not own.

STEP ONE:

Dependant on your operating system, the location of the start up folder will be different.

To find the start up folder, open run from the windows menu (Press Win+R)

[Image: scrrkm.jpg]


type "%userprofile%\Start Menu\Programs\Startup" without the quotes then press OK.


[Image: wsn51j.jpg]


STEP TWO:

A folder should then open, this is your start up folder - anything you put in to this folder will run as soon as you log in.

STEP THREE:

There are two ways to put programs / files in to the folder, the easiest way would be to drag and drop them.

The second way is to create a simple batch script that'll do it for you.

Here is an example of a script that can be used.

[Image: 75607761.jpg]


The code:

cd "%userprofile%\Desktop"
copy test.bat "%userprofile%\Start Menu\Programs\Startup"
del %0
What it does:

The first line: "cd" tells windows that it's looking for a directory. We then tell it what directory to use.
The second line: This copys test.bat and puts it into the start up folder.
The last line: This deletes the file once it has been copied.

STEP FOUR:

To make your own batch file:

open up notepad and type:

cd "directory the file is in"
copy file name "directory to copy to"
del %0

Then go to File > Save As...

File name: anything.bat
Save as type: All Files
Encoding: ANSI

STEP FIVE:

Some useful programs to auto run;

Notepad

"start notepad.exe"

[Image: oqbzav.jpg]


Internet explorer:

"start iexplore.exe"

[Image: 2cyrxc4.jpg]


Firefox:

"start firefox.exe"


[Image: 1zg6d7b.jpg]


I hope this has helped.
  Reply


Messages In This Thread
(Batch) Autostarting programs on login - by Mark - 22-05-2010, 10:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  (Batch) Useful batch commands Mark 10 31,650 13-02-2011, 02:42 PM
Last Post: Mark
  How to make a menu in batch (And start processes) Mark 3 10,585 13-07-2010, 02:34 AM
Last Post: Jamez247
  (Batch) How to shutdown a computer using a batch file Mark 0 6,858 22-05-2010, 10:49 PM
Last Post: Mark
  (Batch) Hello world - Your first Batch program Mark 0 6,890 22-05-2010, 10:35 PM
Last Post: Mark

Forum Jump: