How create a batch file to display a different picture in each monitor - display extended

omar cabello 0 Reputation points
2024-02-29T18:11:41.04+00:00

How create a batch file to display a different picture in each monitor - display extended

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,469 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 8,355 Reputation points
    2024-03-01T10:53:56.25+00:00

    Hello

    Creating a batch file to display a different picture on each monitor is not straightforward because the Windows command line does not natively support operations on multiple monitors. However, you can use third-party tools like nircmd or MultiMonitorTool to achieve this.

     

    Here’s an example of how you might use nircmd to set a different wallpaper on each monitor:

     

    @echo off

    nircmd setwallpaper "C:\Path\To\Picture1.jpg" 1

    nircmd setwallpaper "C:\Path\To\Picture2.jpg" 2

     

    In this script, "C:\Path\To\Picture1.jpg" and "C:\Path\To\Picture2.jpg" should be replaced with the paths to the images you want to display. The numbers 1 and 2 after the image paths represent the monitor indices.

     

    You’ll need to download and install nircmd before you can use it. Also, this script assumes that you have two monitors; if you have more, you can add additional lines to the script.

     

    Remember to save this script with a .bat extension, and you can run it by double-clicking the saved batch file.

     

    If this method doesn’t work for you, you might need to look into other third-party tools or scripts.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.