codeblue Posted May 24, 2004 Share Posted May 24, 2004 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. Link to comment Share on other sites More sharing options...
myfranco Posted May 26, 2004 Share Posted May 26, 2004 could you please tell how you changed color and text? Link to comment Share on other sites More sharing options...
MCT Posted May 27, 2004 Share Posted May 27, 2004 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 Link to comment Share on other sites More sharing options...
jrzycrim Posted May 27, 2004 Share Posted May 27, 2004 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, Link to comment Share on other sites More sharing options...
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