Jump to content

Colourful Maximised Batch's


Recommended Posts

if like me you like pretty colors.. at the top of your script use the color command

color attributes are specified by TWO hex digits -- the first corresponds to the

background; the second the foreground. each digit can be any of the following

values:

   0 = Black       8 = Gray
   1 = Blue        9 = Light Blue
   2 = Green       A = Light Green
   3 = Aqua        B = Light Aqua
   4 = Red         C = Light Red
   5 = Purple      D = Light Purple
   6 = Yellow      E = Light Yellow
   7 = White       F = Bright White

so for bright white text on a light blue background use

COLOR 9F

:: specify columns wide by lines high

MODE CON COLS=x_amount LINES=x_amount

:: to maximise your batch.. call it with

START /MAX /WAIT mycmd.cmd

:: while your at it give it a name in the title bar using

TITLE blimey its a personalised script.. wowee ..numinous.. you rock

:)

heres a for instance.. a 1 line cmd window that displays what its doing rather than what its done

@ECHO OFF
MODE CON COLS=40 LINES=1
COLOR 9F
TITLE Installing
ECHO DirectX 9.0b...............Please Wait
start "DX9" /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opk
ECHO Windows Media Player 9.....Please Wait
start "MP9" /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N /C:"setup_wm.exe /Q:A /R:N /NoMigrate /DisallowSystemRestore"

Link to comment
Share on other sites


Off topic:

What does the "/NoMigrate" in WMP9 do?

@ECHO OFF

MODE CON COLS=40 LINES=1

COLOR 9F

TITLE Installing

ECHO DirectX 9.0b...............Please Wait

start "DX9" /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opk

ECHO Windows Media Player 9.....Please Wait

start "MP9" /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N /C:"setup_wm.exe /Q:A /R:N /NoMigrate /DisallowSystemRestore"

Link to comment
Share on other sites

I am trying to make bootdisk that doesn't show the loading of aspicd.sys and the other drivers, I don't know if there is a proper way to do it so I thought I could just change the color to black on black.

It wouldn't work cuz I see that it changes also what was on screen before so my professional looking "please wait..." wouldn't remain visible, but just for the heck, is it possible to have background and foreground the same color? when I enter the same digit it looks like the command is ignored.

And any suggestion on how to avoid seeing the load message of the various display.sys, aspi etc drivers, maybe using an alternative method would be very appreciated.

my ignorance has no limit, you can navigate inside my head for days without meeting a notion, it's a very relaxing place...

Link to comment
Share on other sites

try a 1 line cmd window :) i didnt see a thing.. except a blinking cursor ..thats why i stretched to 2 lines

or direct any output to NUL using " > NUL" at the end of a command line like this

del "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk" > NUL

any output sent to NUL dissappears

never tried this in config.sys so it may not work but worth a try

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...