8 lines
291 B
Batchfile
8 lines
291 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
net session >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Start-Process cmd.exe -ArgumentList '/c \"\"%~f0\"\"' -Verb RunAs"
|
|
exit /b
|
|
)
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0debug-iis.ps1" |