Computing.Net > Forums > Disk Operating System > How do u make a batch file that runs whenever the computer boots up

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How do u make a batch file that runs whenever the computer boots up

Reply to Message Icon

Name: Jason
Date: August 10, 2000 at 11:57:20 Pacific
Comment:

How do u make a batch file that runs whenever the computer boots up?



Sponsored Link
Ads by Google

Response Number 1
Name: DoOMsdAY
Date: August 10, 2000 at 12:01:42 Pacific
Reply:

Autoexec.bat is a batch file that runs every time the computer starts up. :) (C:\autoexec.bat.)


0

Response Number 2
Name: techtony
Date: August 10, 2000 at 13:32:36 Pacific
Reply:

using notepad, write your batch file with all the commands you want executed. Save it in the C: directory as ****.bat (use the name you like in place of ****). Then in autoexec.bat place the name of the file on a line (before win if you have win, but after any emm entry or smartdrv).


0

Response Number 3
Name: Jason
Date: August 10, 2000 at 18:41:36 Pacific
Reply:

when i open my autoexec.bat it reads:
*********************************************
@echo off
C:\PROGRA~1\MCAFEE\VIRUSS~1\SCANPM.exe C:\
@if errorlevel 1 pause
********************************************

do i put my bat file after the "@if errorlevel 1 pause" or before it?


0

Response Number 4
Name: Jason
Date: August 10, 2000 at 18:44:31 Pacific
Reply:

i was also wondering why AUTOEXEC.BAT runs but not other bat files. is there any command that makes a ordinary bat file runs when a computer boots up? so that i could replace the AUTOEXEC.BAT with my own bat whenever i boot up computer?


0

Response Number 5
Name: W0rm
Date: August 10, 2000 at 19:47:07 Pacific
Reply:

autoexec.bat is an ordinary batch file. io.sys executes command.com with the switch "/K AUTOEXEC.BAT" -> if you put (in config.sys):

SHELL=COMMAND.COM /K NEWBATCH.BAT

it'll run that batch file instead.
but dont replace autoexec.bat, add onto it, or add to the end of it

CALL NEWBATCH.BAT

where in all the cases NEWBATCH is the name of your batch file.
- W0rm


0

Related Posts

See More



Response Number 6
Name: TiGGeR
Date: February 17, 2001 at 07:07:48 Pacific
Reply:

make your batch file and place it in the "startup" folder.
Also: If using this with a program simply have your installer place it there for the user automatically. If you check out Winamp and scour the site you will find a freeware installer that is used for thier plug-ins. This is a great little installer that only adds a few kbs to your program at best. It is called, or at least was called, the "Pimp Installer".


0

Sponsored Link
Ads by Google
Reply to Message Icon

DOS driver for my Crystal... DOS Audio Drivers



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: How do u make a batch file that runs whenever the computer boots up

how do u make a bootdisk? www.computing.net/answers/dos/how-do-u-make-a-bootdisk/3589.html

a batch file that runs only once on a ce www.computing.net/answers/dos/a-batch-file-that-runs-only-once-on-a-ce/7609.html

How to Make a .bat file 2 run programs on usb www.computing.net/answers/dos/how-to-make-a-bat-file-2-run-programs-on-usb/16975.html