Tuesday, October 26, 2010

Windows: Login Script

Alright Windows fans, it is your turn. We will start off by removing anything that opens on start. Click on the Start menu, then look for the folder labelled "Startup". In there will be any programs that open on startup. You can delete them from there, as we are going to be making a start up script for the necessary ones. After deleting them, open up Notepad. For this example, we are going to use Google Chrome, Pidgin, and Steam. Once Notepad is open, type the following:


start pidgin
cd C:\Users\YOUR USERNAME\AppData\Local\Google\Chrome\Application
start chrome
cd C:\Program Files (x86)\Steam
start steam

Take note that YOUR USERNAME should be replaced with the name you use to log onto your computer. Essentially what we are telling the computer is "Got into drive C, go through all of these folders, and open this application". The location where your application may vary depending on where you installed it. If you don't know where you installed the application, you can easily find it.
   To find a application, simply open the start menu--->all programs--->right click on the folder--->Open--->right click on the shortcut--->open location. Now you will see where your application is installed by simply looking at the navigation bar. You can do the same thing with programs not in folders, you just skip straight to "right click and click open location".
   Now that you have compiled all the programs in this notepad file, we need to save it. Click File--->Save As. A new window will appear. You will be asked to name the file and give an extension. However, we don't want the extension to be .txt, instead we want .bat because we are dealing with a batch file. Click the drop down menu and select "All File Types". Then name it what ever you wish, I am naming mine "Start Run", then add .bat at the end. So it will look something like this: Start Run.bat
Save it to an easily accessible location. I put mine on the desktop.
   Finally, test the file by double clicking on it. If you followed the instruction correctly, you will have all the applications you put in open at once.

Please take not that I did this on a Windows 7 PC. Ways may vary slightly on Vista and XP PCs.

~Dave

No comments:

Post a Comment