- Aug
- 2,212
- 100
I was looking for a way to move applications from one monitor to the other on my two-monitor Vista system, via the command line. I came across MultiMonitorTool (http://www.nirsoft.net/utils/multi_monitor_tool.html)
One task that I perform several times a day is to move FireFox between monitors. I can now do this from the command line;
While there are several command line options, I find that /MoveWindow is the one that I use most frequently. Other /MoveWindow examples (from the Help file);
Move all windows located on all monitors to the primary monitor: (The <From Monitor> parameter is omitted, so windows are moved from all monitors)
Move all windows of Internet Explorer to the primary monitor:
Move all windows that their title contains the 'Hello World' string to '\\.\DISPLAY2' monitor:
Move all windows of Windows Explorer (with 'CabinetWClass' window class) to '\\.\DISPLAY3' monitor:
Move all windows from '\\.\DISPLAY3' monitor to '\\.\DISPLAY2' monitor:
Move all windows of Firefox to the next monitor, and set their position to (10, 10), relatively to the target monitor.
Move all windows of Firefox to the next monitor, and set their width to (600, 400).
Joe
One task that I perform several times a day is to move FireFox between monitors. I can now do this from the command line;
Code:
MultiMonitorTool.exe /MoveWindow Next Process "firefox.exe"
While there are several command line options, I find that /MoveWindow is the one that I use most frequently. Other /MoveWindow examples (from the Help file);
Move all windows located on all monitors to the primary monitor: (The <From Monitor> parameter is omitted, so windows are moved from all monitors)
Code:
MultiMonitorTool.exe /MoveWindow Primary All
Move all windows of Internet Explorer to the primary monitor:
Code:
MultiMonitorTool.exe /MoveWindow Primary Process "iexplore.exe"
Move all windows that their title contains the 'Hello World' string to '\\.\DISPLAY2' monitor:
Code:
MultiMonitorTool.exe /MoveWindow 2 Title "Hello World"
Move all windows of Windows Explorer (with 'CabinetWClass' window class) to '\\.\DISPLAY3' monitor:
Code:
MultiMonitorTool.exe /MoveWindow 3 Class "CabinetWClass"
Move all windows from '\\.\DISPLAY3' monitor to '\\.\DISPLAY2' monitor:
Code:
MultiMonitorTool.exe /MoveWindow 2 All 3
Move all windows of Firefox to the next monitor, and set their position to (10, 10), relatively to the target monitor.
Code:
MultiMonitorTool.exe /MoveWindow Next Process "firefox.exe" /WindowLeft 10 /WindowTop 10
Move all windows of Firefox to the next monitor, and set their width to (600, 400).
Code:
MultiMonitorTool.exe /MoveWindow Next Process "firefox.exe" /WindowWidth 600 /WindowHeight 400
Joe