MS-DOS batch file to select among multiple monitors - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

MS-DOS batch file to select among multiple monitors

Hi, I currently have a system set up with 4 physical monitors and 1 unique window to be displayed on each. I have a batch file which is supposed to set the physical monitor on which to display the window with syntax of the form:

start -d1

However, the file name contains spaces and thus quotation marks are required:

start "" -d1

When I do this, the "-d1" command no longer works and all of my windows open on the primary display. I tested it without the quotation marks and a file name without spaces and it works. Is there a way to use the quotation marks and set the display monitor at the same time? This would save me from having to rename the folder and perhaps cause other issues in the system.

Thanks,
Aouda
Sign In or Register to comment.