How to open a batch file every time Command Prompt starts?

  batch-file, cmd, command-line, windows

Is there any way for CMD to run a command when it opens? When opening it, it should run:

@echo off
prompt $D $T $B $P$G
title Command Prompt
@echo on

And then, it should keep the window open.

How can I do this?

Source: Windows Questions

LEAVE A COMMENT