............ Have a nice day............

Thursday 21 February 2013

Write A Batch File To Start a Program when you Start your computer



  • 3
     
    Share
Every time I startup my computer it is usually so I can start the same program, which in my case is FrontPage. I update my webpage everyday so I decided to create a batch file to start this program automatically at startup so it is always ready for me to use.
Here’s how to write  a simple batch file to start a program when you start your computer:
  1. Open notepad. It is located at Start Menu>All Programs>Accessories>Notepad (Windows XP)
  2. Then type start frontpg.exe
  3. Choose File from the menu above. Then choose Save As
  4. Navigate to save on the desktop and type the file name in with .bat filename extension. I have called mine startup.bat
  5. Now you can double click on it on the desktop to test if it opens FrontPage.
batch file

 

 

Now If you want to automatically start this batch file when you start your computer then follow these steps:

  1. Right click on the Start Menu in the bottom left corner. Choose open
  2. Open the Programs folder, then The Startup Folder.
  3. Copy your file from the desktop and paste it in the Startup folder.
  4. Now when you start your computer, your program will automatically start for you. You do not even have to press on the batch file to start your program

start menu properties - write a batch file
You can start any exe file with this simple little batch file. An exe file is an executable file that usually starts a program. Here are some variations of the simple batch file.
  • start /min frontpg.exe
  • start /min iexplorer.exe
  • start /min notepad.exe
  • start /min iexplorer.exe 
  • start /min msimn.exe

Notes:

  • /min = When the program opens it is minimized in the task bar
  • /max = When the program opens it will be maximized and open on your screen Also writing nothing does the same thing.
  • winword.exe Microsoft words .exe filename.
  • msimn.exe Opens Outlook Express.
  • Leave your batch file on your desktop You can just press on it yourself to start all your programs. It starts them so quick!!!   I would rather do it this way. It is even quicker than pressing on the icon on the desktop…Don’t ask me why.
  • You can also drop a shortcut to a program into the startup folder and it should do the same thing.. Give it a try
  • start /min 10.0.0.1  This will take you to a network computer. You need to replace the IP address with the address of the computer you want to connect to. You can also put a server name or computer name as long as it is on the network. 

No comments:

Post a Comment