Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000322

How to run a batch file each time the computer boots.

Issue:

How to run a batch file each time the computer boots.

Reasoning:

It may be necessary to run a batch file to configure computer devices or delete / copy files each time the computer boots to help the computer run more efficiently or allow a device to run. 

Solution:

Windows 98, XP, NT, 2000, Vista and later users

  1. Create a shortcut to the batch file. Additional information about how to create a shortcut can be found on document CH00739.
  2. Once the shortcut has been created right-click the file and select Cut.
  3. Click Start, Programs, right-click the Startup folder and click Open
  4. Once the Startup folder has been opened click Edit and paste the shortcut into the startup. Any shortcuts in the startup folder will automatically start each time Windows starts.

Windows 95, 3.x and MS-DOS users

Place a line in your autoexec.bat that calls the batch file each time you want to boot the computer. For example:

CALL C:\myfile.bat

In the above example each time your computer starts and processes the autoexec.bat file it will call the batch file myfile.bat.

 

 

 

Index

Category:
Batch Files

Companies:
Microsoft

Related Pages:
Autoexec.bat / config.sys
MS-DOS

 

Resolved

Were you able to locate the answer to your questions?

 

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope