Reputation: 11
How do i auto-run a .bat (batch) file? Meaning, I have a .bat file which registers me for few things and there are a few errors in the batch file which is fine. I just go on clicking 'ok' a few times to ignore these error messages, which seems monotonous. Kindly help me to solve this issue!
Upvotes: 1
Views: 11750
Reputation: 66302
You can call it from your autoexec.bat
file and it will run automatically. For example, if your file is commands.bat
:
@ECHO OFF
PROMPT $P$G
PATH C:\DOS;C:\WINDOWS
SET TEMP=C:\TEMP
SET BLASTER=A220 I7 D1 T2
LH SMARTDRV.EXE
LH DOSKEY
LH MOUSE.COM /Y
C:\COMMANDS.BAT
WIN
Upvotes: 1