mazin Posted May 15, 2004 Posted May 15, 2004 I saw many users switching from Batch method to RunOnceEx method for the so-called "Professional Looking". Then, they scan forums searching for proper switches and suitable strings that can be used under RunOnceEx method.I like the Batch method because it's flexible and needs little work that can be repeated exactly with all applications installation. Nothing fails under the Batch method!Well! If you prefer RunOnceEx to Batch method for only the sake of colors, here's how to make your batch colorful.color hex digits:-------------------0 = Black1 = Blue2 = Green3 = Aqua4 = Red5 = Purple6 = Yellow7 = White8 = Gray9 = Light BlueA = Light GreenB = Light AquaC = Light RedD = Light PurpleE = Light YellowF = Bright WhiteSyntax: color xxWe use one digit for the background color (the left one), and one digit for the foreground color (the right one). For example, "color 1e" means blue background with light yellow foreground (the text).If we use the same color for both background and foreground, "color ee" for example, the batch will show black background with white foreground (color 07), the default values.The same will happen if we type the command without values, "color" for exmple.Example 1 - one bundleCreate a batch file (batch.cmd) and include the following lines, then run it to see the result:cls@echo offTitle Hello The Worldcolor 1eECHO This is a test colorful batch...PAUSEEXITSweet?!Example 2 - two or more bundlesCreate a batch file (batch.cmd) and include the following lines, then run it to see the result:cls@echo offTitle Graphics group is being installed nowcolor 1eECHO Adobe Photoshop 7.0ECHO ACDSee 6.0.3PAUSETitle Internet group is being installed nowcolor 57ECHO Stay Connected! 3.5ECHO MSN Messenger 6.2PAUSEEXITIn your real batch file, you won't use PAUSE command, of course. PAUSE command is put here only to give you enough time to see that the window title and colors are changed when the batch reaches a new group of programs.These batch examples can be given more customization if you wish.Update: You can, also, use "cls" before each Title.
Vadikan Posted May 15, 2004 Posted May 15, 2004 mazinThanks for sharing the info with us. I didn't know that. Learning something new every day ;-)
Alanoll Posted May 15, 2004 Posted May 15, 2004 old news here's another thread on the topic, with a few more commands you may find useful.http://www.msfn.org/board/index.php?showto...lors++in++batchas a side note, I find XPlode easier then batch files. both are pretty much the same (in arguments and whatnot).
mazin Posted May 16, 2004 Author Posted May 16, 2004 (edited) Thank you VAD. I'll develop it much more.Thanks Alanoll.I didn't see that post. I just got this info when I typed color /? at the command prompt. So, I found it useful to share.However, I'll develop the idea in the near future. Edited May 16, 2004 by mazin
RayOK Posted May 18, 2004 Posted May 18, 2004 If you really want to get into colors and menus and all sorts of other stuff, check out this 3rd party program called WBAT. Found here: http://home.mnet-online.de/horst.mucI have no idea how to use it, I've just seen the possibilities. Buttons, colors, input boxes, etc.. If someone could develop this method I bet batch people would be very happy, including me.
mazin Posted May 18, 2004 Author Posted May 18, 2004 Lucky, RayOK!I knew this app and its author. I emailed him before opening this thread, and he told me about color /?But, he told me some other info that I'll develop for a batch formatting. So, wait for me!
mazin Posted October 17, 2004 Author Posted October 17, 2004 I haven't fulfilled my promise to develop it due to time limits.But there's someone who saved my life. You can use Console. Here's the original thread.And here's a DDL for version 1.42. Size = 467.7 KB.It's not only a colorful box but skinned, too.
totoymola Posted October 18, 2004 Posted October 18, 2004 white background....seems a bit grey to meMaybe you used a wrong combination. The options are 1-0 and a-f only.For example, color 9f is different from color f9 .
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now