mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 05:25:37 +02:00
start PersistentWindows.exe with high dpi awareness using registry
This commit is contained in:
parent
e175b5f4d8
commit
bf331baf43
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
REG ADD "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /V "%~dp0PersistentWindows.exe" /T REG_SZ /D ~HIGHDPIAWARE /F
|
||||
start "" /B "%~dp0PersistentWindows.exe" %*
|
|
@ -12,7 +12,7 @@ if ($existingTask -ne $null) {
|
|||
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false
|
||||
}
|
||||
|
||||
$executablePath = $PSScriptRoot + "\PersistentWindows.exe"
|
||||
$executablePath = $PSScriptRoot + "\PersistentWindows.bat"
|
||||
|
||||
$action = New-ScheduledTaskAction -Execute $executablePath
|
||||
$trigger = New-ScheduledTaskTrigger -AtLogOn -User $env:username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue