管理者権限で実行 bat
openfiles > nul
if errorlevel 1 (
PowerShell.exe -Command Start-Process \"%~f0\" -Verb runas
exit
)
これこれ!UACでなければなお良し
openfiles > nul
if errorlevel 1 (
PowerShell.exe -Command Start-Process \"%~f0\" -Verb runas
exit
)
これこれ!UACでなければなお良し