Skip to main content

Write A Batch File To Start Programs In Startup


     You can start your computer applications automatically and control the sequence of the programs when your computer comes up. You can start number of applications that you want to start at the time of startup using batch files.



    Here we consider you want to run three different applications (WordPad, calculator, and notepad) and minimized automatically with sequence at windows startup. However, you can write a batch file to open any program that is installed on your system. There are many other uses of a batch file but here we are not going to discuss them.
    Open any text editor like notepad and type the following command.

start /min wordpad.exe start /min calc.exe start /min notepad.exe

    Now choose the option, Save As to save this file with .bat extension. For example filename.bat.
    Now Right- click on Start button and choose open > Double click Programs > here open Startup folder. Now drag your .bat file in the Startup folder and close the dialog box.
    Next time When you restart the computer, WordPad, Calc will start first and then Notepad.

Popular posts from this blog

How to write a bach file or a batch job?

If your are connected with world of programming, you might have heard this word " Batch File ". A batch file is used to execute a no of operations or a list of commands one after the other often requiring no user input. A no of operations are batched in a file to be executed sequentially when we run that file. In Microsoft Windows Operating system a batch file is a file saved with .bat extension while in other operating systems like Unix and Linux it can be written as a command file shell script. Batch files are often used to load programs, run multiple processes at a time, and perform common or repetitive tasks. For example, a batch job could be used to back up many files on a computer system, process log files, run a series of calculation commands, run multiple system diagnostic processes, or any number of other things that require multiple commands to be run. A big advantage of a batch job is that it can be started at any time and left alone until t...

Adding Password to Microsoft Word Document

Recovering Deleted Files, Pictures & Videos

  So many times we accidently delete some important files, pictures or videos. Sometimes we loose files because of unexpected system failure  ( ultimately causing system format). We can get our deleted files back using Recovery Softwares/Utilities.  Even though a file was deleted there is a good chance that contents of the file are still around.  When a file is deleted the contents of the file are not removed. Only a pointer to the file in the file system table is deleted.   It is very important to immediately stop writing to the storage device that previously contained your files/pictures so that the old file contents are not overwritten.  For example, don’t take any more pictures with your digital camera because new pictures will overwrite the deleted files. HOW TO RECOVER DELETED FILES???? Step1: You will need to use a utility to recover your lost files. I like to use a free ut...