I want to write a bat scripts that will toggle between
DisplaySwitch.exe /extend
DisplaySwitch.exe /clone
These commands do what they’re supposed to do, but I dont know how to implement a toggle.
The sources I found talk about these commands but I need to ask the current state so the bat script could know which one to switch to. I am aware of apps for this, but want it to be as lightweight as possible.