Batch files

Zeorymer

Member
Jul 26, 2004
77
0
0
How would I create a batch file that changes the following:

background color (Instead of the standard black can I change it to say yellow or something?)
Stardard prompt (sush as changing the ">" sign to say "<>")

And change the prompt to dislpay more that just "C:>"
(I would like to make the prompt display "C: *TODAYS DATE* - *MY NAME* <>")

I looked in windows help but i couldn't find commands to do this

Thanks in advance to everyone.
 

mugs

Lifer
Apr 29, 2003
48,920
46
91
To change the color of the command window to black on yellow, use "color E0".

For more information on the color command, type "help color" at the command prompt.

To change the prompt use:
prompt $P-$D$L$G

Not sure what you mean by "NAME"

For more info on the prompt command, type "help prompt" at the command prompt.
 

Zeorymer

Member
Jul 26, 2004
77
0
0
ok thanks. But how would I put this into a batch file? Do i need to use some program language?
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
A batch file just runs regular commands line by line. Just put the commands into a file with the extension .bat and run it
 

trek

Senior member
Dec 13, 2000
982
0
71
adding to what mugs had:
prompt $P-$D %USERNAME% $L$G
not sure if that is what you meant...