1
0
mirror of https://github.com/gravesoft/CAS.git synced 2024-11-11 12:49:48 +00:00
CAS/cmd_launcher.cmd
2024-06-14 00:02:52 +03:00

12 lines
299 B
Batchfile

@echo off
for %%# in (powershell.exe) do @if "%%~$PATH:#"=="" (
echo.
echo Windows PowerShell is not installed
pause
exit /b
)
set "_PSf=%~dp0Check-Activation-Status.ps1"
setlocal EnableDelayedExpansion
set "_PSf=!_PSf:'=''!"
powershell.exe -ExecutionPolicy Bypass -Command ^& "'!_PSf!'"