Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a dual screen setup in Windows XP. I have several log file traces that I want to start up and have them positioned in a particular layout on the second screen. Is there a tool that allows me to start a command shell in a certain location? Or a tool that can be run from the command line to reposition a window that I can run in batch?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You should be able to start a program at a fixed position in a batch file using CMDOW.

Cmdow is a Win32 commandline utility for NT4/2000/XP/2003 that allows windows to be listed, moved, resized, renamed, hidden/unhidden, disabled/enabled, minimized, maximized, restored, activated/inactivated, closed, killed and more.

Check the /MOV option:

/MOV Moves the specified window. The left and top arguments specify the new position of the left top corner of the window. For level one windows this relative to the desktop, and for child windows this is relative to its parent window. Level one windows can be moved off the screen using negative coords or coords greater than the desktop size. You should not move a minimized or maximized window without first restoring it..

share|improve this answer
    
Looks like it would do the trick, but my company antivirus is blocking it. :( –  myotherme Jan 22 '10 at 8:05
    
They mention that on their website: "Some anti-virus software vendors now classify cmdow.exe as a hacking tool because it can hide windows. A hacking tool is NOT a virus." –  Snark Jan 22 '10 at 8:14
    
I know that, but I work for corporation that works on policies. –  myotherme Feb 5 '10 at 7:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.