Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I do need to start a couple of existing programs (not developed by me) using a batch file... yes, I know...

And I would like to start program 1 stacked to the left side of the monitor and program 2 stacked to the right side of the monitor... (only one monitor).

It would be wonderful to be able to specify the window position and size somehow...

I can't use the regedit trick as:
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
 "iWindowPosX"=dword:000000db
 "iWindowPosY"=dword:0000008f

Because I plan to start two instances of the same application in different positions...


Can this be done using a bat file?

As always thank you in advance! :thumbsup:
Posted
Updated 21-May-15 2:58am
v4
Comments
virusstorm 21-May-15 7:13am    
If you are using Windows XP, then your options are extremely limited. The multi monitor support in XP was horrible. Many people often had to buy third party applications to achieve their goals.
Richard MacCutchan 21-May-15 7:44am    
If you are using a batch or command file you could add a parameter that tells the app which side to position itself. The app then just needs to calculate the width and height required to fill half the monitor, and position itself as appropriate.
Richard MacCutchan 21-May-15 9:11am    
Did you try my suggestion?
Joan M 21-May-15 9:15am    
I have not tried it Richard, but I don't know how to do it... don't know about the kind of parameter to add and moreover, as the application is not developed by me (third party proprietary product) I don't know if it would even understand a parameter like that one... :(
Is what you are suggesting something that works in all the applications?

Thank you in advance!
Richard MacCutchan 21-May-15 10:27am    
Sorry, I missed that bit. Unless you can modify the source then I don't know of any way to automate it. The program needs to have some mechanism inside it to adjust its position and size when it starts up.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900