cmd min C set __COMPAT_LAYER=RunAsInvoker && start "" %1
For example:
@echo off
set __COMPAT_LAYER=RunAsInvoker
start "" XXX.exe
exit /b 0
ref https://stackoverflow.com/questions/37878185/what-does-compat-layer-actually-do
技术生活札记©Yaohui
cmd min C set __COMPAT_LAYER=RunAsInvoker && start "" %1
For example:
@echo off
set __COMPAT_LAYER=RunAsInvoker
start "" XXX.exe
exit /b 0
ref https://stackoverflow.com/questions/37878185/what-does-compat-layer-actually-do