Jump to content

position of command screen


Recommended Posts

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


Sets the default console foreground and background colors.

COLOR [attr]

attr Specifies color attribute of console output

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

EDIT: heres the link. http://www.computerhope.com/color.htm

it gives an example..

hope this helps :)

Link to comment
Share on other sites

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 0

The 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

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...