I'm using nircmd to change my primary display between my first and second monitor by using two batch files on my desktop; one to set primary display to the first monitor, and the other to set primary display to the second.
I was wondering if there was a way to check which display is the current primary display and then based off that result, change the display to the other one. In essence, I want to combine the two batch files into one so that I can switch displays with one file.