Script to detect and clone display
function Set-Display
{
param(
[Parameter(Position=0)]
[ValidateSet('external','internal','clone','extend','gui')]
[string]$Mode='gui'
)
$path = Join-Path -Path ([environment]::SystemDirectory) -ChildPath DisplaySwitch.exe
if( !(Test-Path -Path $path -PathType Leaf))
{
throw "Cannot find DisplaySwitch.exe"
}
if($Mode -eq 'gui')
{
& $path
}
else
{
& $path /$Mode
}
}
PS > Set-Display -Mode clone
Also in C++:
- scikit-learn install error
- host your pdf resume on github and jekyll
- 'develop' does not appear to be a git repository push f
- libcuda.so.1: cannot open shared object file: No such file or directory
- how to send notification in linux
- d3 install
- sort directory by version numbers
- install serverless framework
- mplayer ubuntu
- browse for folder powershell
- how to install vscode on manjaro linux
- npm history react install command
- create xampp shortcut ubuntu
- ubuntu change primary group
- commit only single file in git
- print variable in bash
- install react form
- how to delete dangling docker images
- upgrade docker compose windows
- install python linux
- cd command windows
- how to erase folder that match characters in linux
- shopify theme kit
- npm bootstrap