May 24, 200422 yr Just changed the color of the text and the size of the command window but i was wondering if the position of the window can be defined when running my batch files? I would like it in the middle up the top.
May 27, 200422 yr Sets the default console foreground and background colors.COLOR [attr] attr Specifies color attribute of console outputColor 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 = Gray1 = Blue 9 = Light Blue2 = Green A = Light Green3 = Aqua B = Light Aqua4 = Red C = Light Red5 = Purple D = Light Purple6 = Yellow E = Light Yellow7 = White F = Bright WhiteEDIT: heres the link. http://www.computerhope.com/color.htmit gives an example..hope this helps
May 27, 200422 yr I see that the original post is a couple of days old but I'll respond anyway...You can use the CMDOW utility to postion your window.cmdow @ /mov [ left ] [ top ]example:cmdow @ /mov 100 0The above example will position your window 100 pixels from the left and 0 from the top.Just make this the first line in your batch file. you'll have to fool around with the numbers to get the exact center.Cheers,
Create an account or sign in to comment