14 lines
302 B
Batchfile
14 lines
302 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Create-RdpShortcuts.ps1" %*
|
|
set "EXITCODE=%ERRORLEVEL%"
|
|
|
|
if not "%EXITCODE%"=="0" (
|
|
echo.
|
|
echo Create-RdpShortcuts.ps1 failed with exit code %EXITCODE%.
|
|
)
|
|
|
|
endlocal & exit /b %EXITCODE%
|